getServiceLocator(); } $helper = new Identity(); if ($container->has('Zend\Authentication\AuthenticationService')) { $helper->setAuthenticationService($container->get('Zend\Authentication\AuthenticationService')); } return $helper; } /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return mixed */ public function createService(ServiceLocatorInterface $serviceLocator, $rName = null, $cName = null) { return $this($serviceLocator, $cName); } }