From a89e622af31b5546232bc2cd374bfe939a150f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Str=C3=B8m?= Date: Thu, 5 May 2016 21:14:43 +0200 Subject: [PATCH] Actually inject controller dependencies --- src/ZfcUser/Factory/Controller/UserControllerFactory.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ZfcUser/Factory/Controller/UserControllerFactory.php b/src/ZfcUser/Factory/Controller/UserControllerFactory.php index 745ae1bb..782ebfb6 100644 --- a/src/ZfcUser/Factory/Controller/UserControllerFactory.php +++ b/src/ZfcUser/Factory/Controller/UserControllerFactory.php @@ -35,6 +35,13 @@ 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')); + return $controller; } }