Commit 9ade4821 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Suppressions config service factories inutiles.

Déplacement vers invokables.
parent ebc17517
......@@ -149,19 +149,6 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se
{
return array(
'factories' => array(
'unicaen-auth_user_service' => function () {
return new Service\User();
},
'UnicaenAuth\Provider\Identity\LdapPeople' => function($sm) {
$authService = $sm->get('zfcuser_auth_service');
$provider = new \UnicaenAuth\Provider\Identity\LdapPeople($authService);
return $provider;
},
'UnicaenAuth\Provider\Identity\DbUser' => function($sm) {
$authService = $sm->get('zfcuser_auth_service');
$provider = new \UnicaenAuth\Provider\Identity\DbUser($authService);
return $provider;
},
// verrue pour forcer le label de l'identifiant qqsoit l'options 'auth_identity_fields'
'zfcuser_login_form' => function($sm) {
$options = $sm->get('zfcuser_module_options');
......@@ -171,6 +158,9 @@ class Module implements ConfigProviderInterface, ViewHelperProviderInterface, Se
return $form;
},
),
'invokables' => array(
'unicaen-auth_user_service' => 'UnicaenAuth\Service\User',
),
);
}
}
\ No newline at end of file
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