Skip to content

Commit

Permalink
minor #4991 Fixed typo and tweaked syntax. (cdvrooman)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Fixed typo and tweaked syntax.

Commits
-------

0f6e045 Fixed typo and tweaked syntax.
  • Loading branch information
wouterj committed Feb 14, 2015
2 parents 3845c9c + 0f6e045 commit 5d44987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/event_dispatcher/before_after_filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ your listener to be called just before any controller is executed.
# app/config/services.yml
services:
app.tokens.action_listener:
class: AappBundle\EventListener\TokenListener
class: AppBundle\EventListener\TokenListener
arguments: ["%tokens%"]
tags:
- { name: kernel.event_listener, event: kernel.controller, method: onKernelController }
Expand Down Expand Up @@ -240,7 +240,7 @@ if it's found::
$response->headers->set('X-CONTENT-HASH', $hash);
}

Finally, a second "tag" is needed on the service definition to notify Symfony
Finally, a second "tag" is needed in the service definition to notify Symfony
that the ``onKernelResponse`` event should be notified for the ``kernel.response``
event:

Expand Down

0 comments on commit 5d44987

Please sign in to comment.