*/ class UserInfoFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $helperPluginManager * @return UserInfo */ public function createService(ServiceLocatorInterface $helperPluginManager) { $serviceLocator = $helperPluginManager->getServiceLocator(); $authService = $serviceLocator->get('zfcuser_auth_service'); $mapper = $serviceLocator->get('ldap_structure_mapper'); $helper = new UserInfo($authService); $helper->setMapperStructure($mapper); return $helper; } }