Loading src/UnicaenLdap/LdapFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,16 +13,15 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class LdapFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return Ldap */ public function createService(ServiceLocatorInterface $serviceLocator) { return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { /* @var $options \UnicaenLdap\Options\ModuleOptions */ $options = $serviceLocator->get('ldapOptions'); $options = $container->get('ldapOptions'); return new Ldap( $options->getLdap() ); } Loading src/UnicaenLdap/Options/ModuleOptionsFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap\Options; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,15 +13,14 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class ModuleOptionsFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return ModuleOptions */ public function createService(ServiceLocatorInterface $serviceLocator) { $config = $serviceLocator->get('Configuration'); return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $config = $container->get('Configuration'); $moduleConfig = isset($config['unicaen-ldap']) ? $config['unicaen-ldap'] : array(); return new ModuleOptions($moduleConfig); Loading src/UnicaenLdap/Service/GenericFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap\Service; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,17 +13,16 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class GenericFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return Generic */ public function createService(ServiceLocatorInterface $serviceLocator) { return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $service = new Generic(); $service->setServiceLocator($serviceLocator); $service->setServiceLocator($container); return $service; } Loading src/UnicaenLdap/Service/GroupFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap\Service; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,17 +13,16 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class GroupFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return Group */ public function createService(ServiceLocatorInterface $serviceLocator) { return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $service = new Group(); $service->setServiceLocator($serviceLocator); $service->setServiceLocator($container); return $service; } Loading src/UnicaenLdap/Service/PeopleFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap\Service; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,17 +13,16 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class PeopleFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return People */ public function createService(ServiceLocatorInterface $serviceLocator) { return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $service = new People(); $service->setServiceLocator($serviceLocator); $service->setServiceLocator($container); return $service; } Loading Loading
src/UnicaenLdap/LdapFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,16 +13,15 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class LdapFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return Ldap */ public function createService(ServiceLocatorInterface $serviceLocator) { return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { /* @var $options \UnicaenLdap\Options\ModuleOptions */ $options = $serviceLocator->get('ldapOptions'); $options = $container->get('ldapOptions'); return new Ldap( $options->getLdap() ); } Loading
src/UnicaenLdap/Options/ModuleOptionsFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap\Options; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,15 +13,14 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class ModuleOptionsFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return ModuleOptions */ public function createService(ServiceLocatorInterface $serviceLocator) { $config = $serviceLocator->get('Configuration'); return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $config = $container->get('Configuration'); $moduleConfig = isset($config['unicaen-ldap']) ? $config['unicaen-ldap'] : array(); return new ModuleOptions($moduleConfig); Loading
src/UnicaenLdap/Service/GenericFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap\Service; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,17 +13,16 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class GenericFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return Generic */ public function createService(ServiceLocatorInterface $serviceLocator) { return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $service = new Generic(); $service->setServiceLocator($serviceLocator); $service->setServiceLocator($container); return $service; } Loading
src/UnicaenLdap/Service/GroupFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap\Service; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,17 +13,16 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class GroupFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return Group */ public function createService(ServiceLocatorInterface $serviceLocator) { return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $service = new Group(); $service->setServiceLocator($serviceLocator); $service->setServiceLocator($container); return $service; } Loading
src/UnicaenLdap/Service/PeopleFactory.php +7 −7 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace UnicaenLdap\Service; use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; Loading @@ -12,17 +13,16 @@ use Zend\ServiceManager\ServiceLocatorInterface; */ class PeopleFactory implements FactoryInterface { /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return People */ public function createService(ServiceLocatorInterface $serviceLocator) { return $this->__invoke($serviceLocator, '?'); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $service = new People(); $service->setServiceLocator($serviceLocator); $service->setServiceLocator($container); return $service; } Loading