Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
fcefc535
Commit
fcefc535
authored
Jun 20, 2014
by
Ibrahim AshShohail
Committed by
Fabien Potencier
Jul 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allowed shared ContextListener for firewalls
parent
aed232e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/Silex/Provider/SecurityServiceProvider.php
src/Silex/Provider/SecurityServiceProvider.php
+3
-2
No files found.
src/Silex/Provider/SecurityServiceProvider.php
View file @
fcefc535
...
@@ -200,7 +200,8 @@ class SecurityServiceProvider implements ServiceProviderInterface
...
@@ -200,7 +200,8 @@ class SecurityServiceProvider implements ServiceProviderInterface
$users
=
isset
(
$firewall
[
'users'
])
?
$firewall
[
'users'
]
:
array
();
$users
=
isset
(
$firewall
[
'users'
])
?
$firewall
[
'users'
]
:
array
();
$security
=
isset
(
$firewall
[
'security'
])
?
(
bool
)
$firewall
[
'security'
]
:
true
;
$security
=
isset
(
$firewall
[
'security'
])
?
(
bool
)
$firewall
[
'security'
]
:
true
;
$stateless
=
isset
(
$firewall
[
'stateless'
])
?
(
bool
)
$firewall
[
'stateless'
]
:
false
;
$stateless
=
isset
(
$firewall
[
'stateless'
])
?
(
bool
)
$firewall
[
'stateless'
]
:
false
;
unset
(
$firewall
[
'pattern'
],
$firewall
[
'users'
],
$firewall
[
'security'
],
$firewall
[
'stateless'
]);
$context
=
isset
(
$firewall
[
'context'
])
?
$firewall
[
'context'
]
:
$name
;
unset
(
$firewall
[
'pattern'
],
$firewall
[
'users'
],
$firewall
[
'security'
],
$firewall
[
'stateless'
],
$firewall
[
'context'
]);
$protected
=
false
===
$security
?
false
:
count
(
$firewall
);
$protected
=
false
===
$security
?
false
:
count
(
$firewall
);
...
@@ -216,7 +217,7 @@ class SecurityServiceProvider implements ServiceProviderInterface
...
@@ -216,7 +217,7 @@ class SecurityServiceProvider implements ServiceProviderInterface
}
}
if
(
false
===
$stateless
)
{
if
(
false
===
$stateless
)
{
$listeners
[]
=
'security.context_listener.'
.
$
name
;
$listeners
[]
=
'security.context_listener.'
.
$
context
;
}
}
$factories
=
array
();
$factories
=
array
();
...
...
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