File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
cookbook/event_dispatcher Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ or hooks.
10
10
11
11
In Symfony1, this was achieved with the preExecute and postExecute methods,
12
12
most major frameworks have similar methods but there is no such thing in Symfony2.
13
- The good news is that there is a much better way to interfere the
14
- Request -> Response process using the EventDispatcher component.
13
+ The good news is that there is a much better way to interfere with the
14
+ Request -> Response process using the :doc: ` EventDispatcher component</components/event_dispatcher/introduction> ` .
15
15
16
16
Token validation Example
17
17
------------------------
@@ -21,13 +21,13 @@ but some others are restricted to one or some clients. For these private feature
21
21
you might provide a token to your clients to identify themselves.
22
22
23
23
So, before executing your controller action, you need to check if the action
24
- is restricted or not. And if it is restricted, you need to validate the provided
24
+ is restricted or not. If it is restricted, you need to validate the provided
25
25
token.
26
26
27
27
.. note ::
28
28
29
- Please note that for simplicity in the recipe, tokens will be defined
30
- in config and neither database setup nor authentication provider via
29
+ Please note that for simplicity in this recipe, tokens will be defined
30
+ in config and neither database setup nor authentication via
31
31
the Security component will be used.
32
32
33
33
Creating a before filter with a controller.request event
You can’t perform that action at this time.
0 commit comments