Loading src/UnicaenAuthentification/Authentication/Adapter/AbstractFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class AbstractFactory implements AbstractFactoryInterface return strpos($requestedName, __NAMESPACE__) === 0 && class_exists($requestedName); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) { switch ($requestedName) { case __NAMESPACE__ . '\Ldap': Loading src/UnicaenAuthentification/Authentication/Adapter/AdapterChainServiceFactory.php +2 −2 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ use ZfcUser\Options\ModuleOptions; class AdapterChainServiceFactory { public function __invoke(ContainerInterface $container, $requestedName, array $options = null): AdapterChain public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null): AdapterChain { $chain = new AdapterChain(); Loading Loading @@ -50,7 +50,7 @@ class AdapterChainServiceFactory * @param ContainerInterface|null $container (optional) Service Locator * @return ModuleOptions $options */ public function getOptions(ContainerInterface $container = null): ModuleOptions public function getOptions(?ContainerInterface $container = null): ModuleOptions { if (!$this->options) { if (!$container) { Loading src/UnicaenAuthentification/Authentication/Adapter/CasAdapterFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ class CasAdapterFactory * @param array|null $options * @return Cas */ public function __invoke(ContainerInterface $container, string $requestedName, array $options = null) public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null) { $adapter = new Cas(); $adapter->setStorage(new Session(Cas::class)); Loading src/UnicaenAuthentification/Authentication/Adapter/LdapAdapterFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ class LdapAdapterFactory * @param array|null $options * @return Ldap */ public function __invoke(ContainerInterface $container, string $requestedName, array $options = null) public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null) { $adapter = new Ldap(); $adapter->setStorage(new Session(Ldap::class)); Loading src/UnicaenAuthentification/Authentication/Adapter/ShibAdapterFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ class ShibAdapterFactory * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ public function __invoke(ContainerInterface $container, string $requestedName, array $options = null): Shib public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null): Shib { $adapter = new Shib(); $adapter->setStorage(new Session(Shib::class)); Loading Loading
src/UnicaenAuthentification/Authentication/Adapter/AbstractFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ class AbstractFactory implements AbstractFactoryInterface return strpos($requestedName, __NAMESPACE__) === 0 && class_exists($requestedName); } public function __invoke(ContainerInterface $container, $requestedName, array $options = null) public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) { switch ($requestedName) { case __NAMESPACE__ . '\Ldap': Loading
src/UnicaenAuthentification/Authentication/Adapter/AdapterChainServiceFactory.php +2 −2 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ use ZfcUser\Options\ModuleOptions; class AdapterChainServiceFactory { public function __invoke(ContainerInterface $container, $requestedName, array $options = null): AdapterChain public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null): AdapterChain { $chain = new AdapterChain(); Loading Loading @@ -50,7 +50,7 @@ class AdapterChainServiceFactory * @param ContainerInterface|null $container (optional) Service Locator * @return ModuleOptions $options */ public function getOptions(ContainerInterface $container = null): ModuleOptions public function getOptions(?ContainerInterface $container = null): ModuleOptions { if (!$this->options) { if (!$container) { Loading
src/UnicaenAuthentification/Authentication/Adapter/CasAdapterFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ class CasAdapterFactory * @param array|null $options * @return Cas */ public function __invoke(ContainerInterface $container, string $requestedName, array $options = null) public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null) { $adapter = new Cas(); $adapter->setStorage(new Session(Cas::class)); Loading
src/UnicaenAuthentification/Authentication/Adapter/LdapAdapterFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ class LdapAdapterFactory * @param array|null $options * @return Ldap */ public function __invoke(ContainerInterface $container, string $requestedName, array $options = null) public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null) { $adapter = new Ldap(); $adapter->setStorage(new Session(Ldap::class)); Loading
src/UnicaenAuthentification/Authentication/Adapter/ShibAdapterFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ class ShibAdapterFactory * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ public function __invoke(ContainerInterface $container, string $requestedName, array $options = null): Shib public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null): Shib { $adapter = new Shib(); $adapter->setStorage(new Session(Shib::class)); Loading