Commit a4d594d8 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Adaptation php8.4

parent b16ac4f1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ class AuthenticationIdentityProviderServiceFactory implements FactoryInterface
        return $this->__invoke($serviceLocator, '?');
    }

    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        $user                   = $container->get('zfcuser_user_service');
        $simpleIdentityProvider = new AuthenticationIdentityProvider($user->getAuthService());
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ class AuthorizeFactory implements FactoryInterface
        return $this->__invoke($serviceLocator, '?');
    }

    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        return new Authorize($container->get('BjyAuthorize\Config'), $container);
    }
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ class CacheFactory implements FactoryInterface
        return $this->__invoke($serviceLocator, '?');
    }

    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        $options = $container->get('BjyAuthorize\Config');

+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ class CacheKeyGeneratorFactory implements FactoryInterface
        return $this->__invoke($serviceLocator, '?');
    }

    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        $config     = $container->get('BjyAuthorize\Config');
        $cacheKey   = empty($config['cache_key']) ? 'bjyauthorize_acl' : (string) $config['cache_key'];
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ class ConfigResourceProviderServiceFactory implements FactoryInterface
        return $this->__invoke($serviceLocator, '?');
    }

    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        $config = $container->get('BjyAuthorize\Config');

Loading