getServiceLocator(); $helper = new Identity(); if ($services->has('Zend\Authentication\AuthenticationService')) { $helper->setAuthenticationService($services->get('Zend\Authentication\AuthenticationService')); } return $helper; } }