| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function createService(ServiceLocatorInterface $pluginManager) |
||
| 17 | { |
||
| 18 | /* @var $pluginManager PluginManager */ |
||
| 19 | $serviceManager = $pluginManager->getServiceLocator(); |
||
| 20 | |||
| 21 | /* @var $authService AuthenticationService */ |
||
| 22 | $authService = $serviceManager->get('zfcuser_auth_service'); |
||
| 23 | |||
| 24 | /* @var $authAdapter Adapter\AdapterChain */ |
||
| 25 | $authAdapter = $serviceManager->get('ZfcUser\Authentication\Adapter\AdapterChain'); |
||
| 26 | |||
| 27 | $controllerPlugin = new ZfcUserAuthentication; |
||
| 28 | $controllerPlugin |
||
| 29 | ->setAuthService($authService) |
||
| 30 | ->setAuthAdapter($authAdapter) |
||
| 31 | ; |
||
| 32 | |||
| 33 | return $controllerPlugin; |
||
| 34 | } |
||
| 35 | } |
||
| 36 |