Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christophe Turbout
auth
Commits
af3c6d6f
You need to sign in or sign up before continuing.
Commit
af3c6d6f
authored
7 years ago
by
Bertrand Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
Le service UserContext est désormais construit par une factory
parent
f292b106
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/module.config.php
+2
-1
2 additions, 1 deletion
config/module.config.php
src/UnicaenAuth/Service/UserContextFactory.php
+19
-0
19 additions, 0 deletions
src/UnicaenAuth/Service/UserContextFactory.php
with
21 additions
and
1 deletion
config/module.config.php
+
2
−
1
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'
=>
[
...
...
This diff is collapsed.
Click to expand it.
src/UnicaenAuth/Service/UserContextFactory.php
0 → 100644
+
19
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment