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