File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -409,12 +409,11 @@ submission (i.e. ``/login_check``):
409
409
to this URL.
410
410
411
411
.. versionadded :: 2.1
412
- As of Symfony 2.1, you *must * have routes configured for your ``login_path ``
413
- (e.g. `` /login ``), ``check_path `` (e.g. `` /login_check ``) and `` logout ``
414
- (e.g. `` /logout `` - see ` Logging Out `_) URLs .
412
+ As of Symfony 2.1, you *must * have routes configured for your ``login_path ``,
413
+ `` check_path `` ``logout `` keys. These keys can be route names (as shown
414
+ in this example) or URLs that have routes configured for them .
415
415
416
- Notice that the name of the ``login `` route isn't important. What's important
417
- is that the URL of the route (``/login ``) matches the ``login_path `` config
416
+ Notice that the name of the ``login `` route matches the``login_path`` config
418
417
value, as that's where the security system will redirect users that need
419
418
to login.
420
419
@@ -1667,7 +1666,7 @@ the firewall can handle this automatically for you when you activate the
1667
1666
'firewalls' => array(
1668
1667
'secured_area' => array(
1669
1668
// ...
1670
- 'logout' => array('path' => 'logout', 'target' => '/'),
1669
+ 'logout' => array('path' => '/ logout', 'target' => '/'),
1671
1670
),
1672
1671
),
1673
1672
// ...
You can’t perform that action at this time.
0 commit comments