Skip to content

Commit

Permalink
Fix usage of servicelocator in UserControllerFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielss89 committed May 7, 2016
1 parent d268835 commit 3150e67
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ZfcUser/Factory/Controller/UserControllerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3150e67

Please sign in to comment.