Skip to content

Commit

Permalink
minor #4306 Improve readability (ifdattic)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Improve readability

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |

Commits
-------

a715baf Improve readability
  • Loading branch information
wouterj committed Oct 9, 2014
2 parents 60c0c82 + a715baf commit 1603463
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cookbook/event_dispatcher/before_after_filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ event listeners, you can learn more about them at :doc:`/cookbook/service_contai
$controller = $event->getController();

/*
* $controller passed can be either a class or a Closure. This is not usual in Symfony but it may happen.
* $controller passed can be either a class or a Closure.
* This is not usual in Symfony but it may happen.
* If it is a class, it comes in array format
*/
if (!is_array($controller)) {
Expand Down Expand Up @@ -189,7 +190,7 @@ want.
After Filters with the ``kernel.response`` Event
------------------------------------------------

In addition to having a "hook" that's executed before your controller, you
In addition to having a "hook" that's executed *before* your controller, you
can also add a hook that's executed *after* your controller. For this example,
imagine that you want to add a sha1 hash (with a salt using that token) to
all responses that have passed this token authentication.
Expand Down

0 comments on commit 1603463

Please sign in to comment.