Permalink
Browse files

minor #4306 Improve readability (ifdattic)

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 16034633f498c23af8abce8edce266f8af36a010
Showing with 3 additions and 2 deletions.
  1. +3 −2 cookbook/event_dispatcher/before_after_filters.rst
@@ -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)) {
@@ -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.

0 comments on commit 1603463

Please sign in to comment.