getServiceLocator(); /* @var $authService AuthenticationService */ $authService = $serviceManager->get('zfcuser_auth_service'); /* @var $authAdapter Adapter\AdapterChain */ $authAdapter = $serviceManager->get('ZfcUser\Authentication\Adapter\AdapterChain'); $controllerPlugin = new ZfcUserAuthentication; $controllerPlugin ->setAuthService($authService) ->setAuthAdapter($authAdapter) ; return $controllerPlugin; } }