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
fe12191a
Commit
fe12191a
authored
Jun 26, 2012
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added support for the url generator and url matcher in the security HttpUtils class
parent
1fcdbef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Silex/Provider/SecurityServiceProvider.php
src/Silex/Provider/SecurityServiceProvider.php
+1
-1
No files found.
src/Silex/Provider/SecurityServiceProvider.php
View file @
fe12191a
...
@@ -274,7 +274,7 @@ class SecurityServiceProvider implements ServiceProviderInterface
...
@@ -274,7 +274,7 @@ class SecurityServiceProvider implements ServiceProviderInterface
});
});
$app
[
'security.http_utils'
]
=
$app
->
share
(
function
()
use
(
$app
)
{
$app
[
'security.http_utils'
]
=
$app
->
share
(
function
()
use
(
$app
)
{
return
new
HttpUtils
();
return
new
HttpUtils
(
isset
(
$app
[
'url_generator'
])
?
$app
[
'url_generator'
]
:
null
,
$app
[
'url_matcher'
]
);
});
});
$app
[
'security.last_error'
]
=
$app
->
protect
(
function
(
Request
$request
)
{
$app
[
'security.last_error'
]
=
$app
->
protect
(
function
(
Request
$request
)
{
...
...
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