Skip to content

Commit

Permalink
minor #4743 [Book][Security] Fix typo and remove redundant sentence (…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
weaverryan committed Jan 3, 2015
2 parents 207f2f0 + f56d26f commit e447e70
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ There are **two** ways to deny access to something:
Securing URL patterns (access_control)
......................................

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

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

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

0 comments on commit e447e70

Please sign in to comment.