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
af3c6d6f
Commit
af3c6d6f
authored
Mar 20, 2018
by
Bertrand Gauthier
Browse files
Le service UserContext est désormais construit par une factory
parent
f292b106
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/module.config.php
View file @
af3c6d6f
...
...
@@ -3,6 +3,7 @@
use
UnicaenAuth\Controller\AuthControllerFactory
;
use
UnicaenAuth\Service\ShibService
;
use
UnicaenAuth\Service\ShibServiceFactory
;
use
UnicaenAuth\Service\UserContextFactory
;
use
UnicaenAuth\View\Helper\ShibConnectViewHelperFactory
;
$settings
=
[
...
...
@@ -373,7 +374,6 @@ return [
'UnicaenAuth\Authentication\Storage\Ldap'
=>
'UnicaenAuth\Authentication\Storage\Ldap'
,
'UnicaenAuth\Authentication\Storage\Shib'
=>
'UnicaenAuth\Authentication\Storage\Shib'
,
'UnicaenAuth\View\RedirectionStrategy'
=>
'UnicaenAuth\View\RedirectionStrategy'
,
'UnicaenAuth\Service\UserContext'
=>
'UnicaenAuth\Service\UserContext'
,
'UnicaenAuth\Service\User'
=>
'UnicaenAuth\Service\User'
,
'UnicaenAuth\Service\CategoriePrivilege'
=>
'UnicaenAuth\Service\CategoriePrivilegeService'
,
],
...
...
@@ -396,6 +396,7 @@ return [
'BjyAuthorize\Service\Authorize'
=>
'UnicaenAuth\Service\AuthorizeServiceFactory'
,
// substituion
'zfcuser_redirect_callback'
=>
'UnicaenAuth\Authentication\RedirectCallbackFactory'
,
// substituion
ShibService
::
class
=>
ShibServiceFactory
::
class
,
'UnicaenAuth\Service\UserContext'
=>
UserContextFactory
::
class
,
'MouchardCompleterAuth'
=>
'UnicaenAuth\Mouchard\MouchardCompleterAuthFactory'
,
],
'shared'
=>
[
...
...
src/UnicaenAuth/Service/UserContextFactory.php
0 → 100644
View file @
af3c6d6f
<?php
namespace
UnicaenAuth\Service
;
use
Zend\ServiceManager\ServiceLocatorInterface
;
class
UserContextFactory
{
/**
* @param ServiceLocatorInterface $sl
* @return UserContext
*/
public
function
__invoke
(
ServiceLocatorInterface
$sl
)
{
$service
=
new
UserContextService
();
return
$service
;
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
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