Skip to content

Commit

Permalink
Actually inject controller dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielss89 committed May 5, 2016
1 parent 9806b9c commit a89e622
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ZfcUser/Factory/Controller/UserControllerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

1 comment on commit a89e622

@nclundsten
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 forms, only one of which is ever used at a time. over-eager

have an issue up for this

Please sign in to comment.