From 3150e67873cc1e53b4a6b2b854758a0cd8979b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Str=C3=B8m?= Date: Sat, 7 May 2016 13:13:13 +0200 Subject: [PATCH] Fix usage of servicelocator in UserControllerFactory --- .../Factory/Controller/UserControllerFactory.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ZfcUser/Factory/Controller/UserControllerFactory.php b/src/ZfcUser/Factory/Controller/UserControllerFactory.php index 782ebfb6..88122b4d 100644 --- a/src/ZfcUser/Factory/Controller/UserControllerFactory.php +++ b/src/ZfcUser/Factory/Controller/UserControllerFactory.php @@ -35,12 +35,12 @@ public function createService(ServiceLocatorInterface $controllerManager) $controller = new UserController($redirectCallback); $controller->setServiceLocator($serviceManager); - $controller->setChangeEmailForm($this->serviceLocator->get('zfcuser_change_email_form')); - $controller->setOptions($this->serviceLocator->get('zfcuser_module_options')); - $controller->setChangePasswordForm($this->serviceLocator->get('zfcuser_change_password_form')); - $controller->setLoginForm($this->serviceLocator->get('zfcuser_login_form')); - $controller->setRegisterForm($this->serviceLocator->get('zfcuser_register_form')); - $controller->setUserService($this->serviceLocator->get('zfcuser_user_service')); + $controller->setChangeEmailForm($serviceManager->get('zfcuser_change_email_form')); + $controller->setOptions($serviceManager->get('zfcuser_module_options')); + $controller->setChangePasswordForm($serviceManager->get('zfcuser_change_password_form')); + $controller->setLoginForm($serviceManager->get('zfcuser_login_form')); + $controller->setRegisterForm($serviceManager->get('zfcuser_register_form')); + $controller->setUserService($serviceManager->get('zfcuser_user_service')); return $controller; }