Skip to content

Commit e447e70

Browse files
committed
minor #4743 [Book][Security] Fix typo and remove redundant sentence (xelaris)
This PR was merged into the 2.3 branch. Discussion ---------- [Book][Security] Fix typo and remove redundant sentence | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | >=2.3 | Fixed tickets | Commits ------- f56d26f Fix typo and remove redundant sentence
2 parents 207f2f0 + f56d26f commit e447e70

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

book/security.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ There are **two** ways to deny access to something:
655655
Securing URL patterns (access_control)
656656
......................................
657657

658-
The most basic way to secure part of your application is to secure an entire
658+
The most basic way to secure parts of your application is to secure an entire
659659
URL pattern. You saw this earlier, where anything matching the regular expression
660660
``^/admin`` requires the ``ROLE_ADMIN`` role:
661661

@@ -1082,8 +1082,7 @@ Next, you'll need to create a route for this URL (but not a controller):
10821082
return $collection;
10831083
10841084
And that's it! By sending a user to ``/logout`` (or whatever you configure
1085-
the ``path`` to be), Symfony will un-authenticate the current user. and
1086-
redirect them the homepage (the value defined by ``target``).
1085+
the ``path`` to be), Symfony will un-authenticate the current user.
10871086

10881087
Once the user has been logged out, they will be redirected to whatever path
10891088
is defined by the ``target`` parameter above (e.g. the ``homepage``).

0 commit comments

Comments
 (0)