security = $security ; } public function getCurrentMerchant() { $user = $this->security->getUser() ; if($user && $user->getMerchant()) { return $user->getMerchant() ; } else { return false ; } } }