Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
9ade4821
Commit
9ade4821
authored
Oct 03, 2013
by
Bertrand Gauthier
Browse files
Suppressions config service factories inutiles.
Déplacement vers invokables.
parent
ebc17517
Changes
1
Hide whitespace changes
Inline
Side-by-side
Module.php
View file @
9ade4821
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment