Commit c3f28ea5 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Le service AuthenticationService est fourni via une LazyServiceFactory pour...

Le service AuthenticationService est fourni via une LazyServiceFactory pour tenter d'éviter les boucle dans le service container.
parent 0dac91d4
Pipeline #4043 passed with stage
in 21 seconds
......@@ -18,6 +18,8 @@ use UnicaenAuth\View\Helper\LdapConnectViewHelperFactory;
use UnicaenAuth\View\Helper\LocalConnectViewHelperFactory;
use UnicaenAuth\View\Helper\ShibConnectViewHelperFactory;
use UnicaenAuth\View\Helper\UserUsurpationHelperFactory;
use Zend\Authentication\AuthenticationService;
use Zend\ServiceManager\Proxy\LazyServiceFactory;
$settings = [
......@@ -462,6 +464,17 @@ return [
'UnicaenAuth\Guard\PrivilegeController' => PrivilegeControllerFactory::class,
'UnicaenAuth\Guard\PrivilegeRoute' => PrivilegeRouteFactory::class,
],
'lazy_services' => [
// Mapping services to their class names is required since the ServiceManager is not a declarative DIC.
'class_map' => [
'zfcuser_auth_service' => AuthenticationService::class,
],
],
'delegators' => [
'zfcuser_auth_service' => [
LazyServiceFactory::class,
],
],
'shared' => [
'MouchardCompleterAuth' => false,
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment