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
24a1c520
Commit
24a1c520
authored
Aug 31, 2015
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed remaining obsolete service
parent
f109eb94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
doc/providers/csrf.rst
doc/providers/csrf.rst
+1
-1
src/Silex/Provider/SecurityServiceProvider.php
src/Silex/Provider/SecurityServiceProvider.php
+2
-2
No files found.
doc/providers/csrf.rst
View file @
24a1c520
...
...
@@ -12,7 +12,7 @@ Parameters
Services
--------
* **
form.csrf_provid
er**: An instance of an implementation of the
* **
csrf.token_manag
er**: An instance of an implementation of the
`CsrfProviderInterface
<http://api.symfony.com/master/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.html>`_,
defaults to a `DefaultCsrfProvider
...
...
src/Silex/Provider/SecurityServiceProvider.php
View file @
24a1c520
...
...
@@ -449,7 +449,7 @@ class SecurityServiceProvider implements ServiceProviderInterface, EventListener
$options
,
$app
[
'logger'
],
$app
[
'dispatcher'
],
isset
(
$options
[
'with_csrf'
])
&&
$options
[
'with_csrf'
]
&&
isset
(
$app
[
'
form.csrf_provider'
])
?
$app
[
'form.csrf_provid
er'
]
:
null
isset
(
$options
[
'with_csrf'
])
&&
$options
[
'with_csrf'
]
&&
isset
(
$app
[
'
csrf.token_manager'
])
?
$app
[
'csrf.token_manag
er'
]
:
null
);
};
});
...
...
@@ -502,7 +502,7 @@ class SecurityServiceProvider implements ServiceProviderInterface, EventListener
$app
[
'security.http_utils'
],
$app
[
'security.authentication.logout_handler.'
.
$name
],
$options
,
isset
(
$options
[
'with_csrf'
])
&&
$options
[
'with_csrf'
]
&&
isset
(
$app
[
'
form.csrf_provider'
])
?
$app
[
'form.csrf_provid
er'
]
:
null
isset
(
$options
[
'with_csrf'
])
&&
$options
[
'with_csrf'
]
&&
isset
(
$app
[
'
csrf.token_manager'
])
?
$app
[
'csrf.token_manag
er'
]
:
null
);
$invalidateSession
=
isset
(
$options
[
'invalidate_session'
])
?
$options
[
'invalidate_session'
]
:
true
;
...
...
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