getServiceLocator(); /* @var $authService AuthenticationService */ $authService = $serviceManager->get('zfcuser_auth_service'); $viewHelper = new ZfcUserDisplayName; $viewHelper->setAuthService($authService); return $viewHelper; } }