From 1a72594dac8cc2865310b240e61292f60440fd35 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Mon, 3 Feb 2014 15:30:03 +0100 Subject: [PATCH] Using protected member $securityContext instez of a protected getter --- core/lib/Thelia/Action/Customer.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/core/lib/Thelia/Action/Customer.php b/core/lib/Thelia/Action/Customer.php index d02f895d4..1903cc45a 100644 --- a/core/lib/Thelia/Action/Customer.php +++ b/core/lib/Thelia/Action/Customer.php @@ -127,7 +127,7 @@ class Customer extends BaseAction implements EventSubscriberInterface public function login(CustomerLoginEvent $event) { - $this->getSecurityContext()->setCustomerUser($event->getCustomer()); + $this->securityContext->setCustomerUser($event->getCustomer()); } /** @@ -137,17 +137,7 @@ class Customer extends BaseAction implements EventSubscriberInterface */ public function logout(ActionEvent $event) { - $this->getSecurityContext()->clearCustomerUser(); - } - - /** - * Return the security context - * - * @return \Thelia\Core\Security\SecurityContext - */ - protected function getSecurityContext() - { - return $this->securityContext; + $this->securityContext->clearCustomerUser(); } /**