File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,6 @@ Learn more
258
258
259
259
.. toctree ::
260
260
:maxdepth: 1
261
- :glob:
262
261
263
- event_dispatcher/*
262
+ event_dispatcher/before_after_filters
263
+ event_dispatcher/method_behavior
Original file line number Diff line number Diff line change @@ -33,22 +33,21 @@ token.
33
33
Before Filters with the ``kernel.controller `` Event
34
34
---------------------------------------------------
35
35
36
- First, store some basic token configuration using ``config.yml `` and the
37
- parameters key:
36
+ First, define some token configuration as parameters:
38
37
39
38
.. configuration-block ::
40
39
41
40
.. code-block :: yaml
42
41
43
- # app/ config/config.yml
42
+ # config/services.yaml
44
43
parameters :
45
44
tokens :
46
45
client1 : pass1
47
46
client2 : pass2
48
47
49
48
.. code-block :: xml
50
49
51
- <!-- app/ config/config .xml -->
50
+ <!-- config/services .xml -->
52
51
<?xml version =" 1.0" encoding =" UTF-8" ?>
53
52
<container xmlns =" http://symfony.com/schema/dic/services"
54
53
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -65,7 +64,7 @@ parameters key:
65
64
66
65
.. code-block :: php
67
66
68
- // app/ config/config .php
67
+ // config/services .php
69
68
$container->setParameter('tokens', array(
70
69
'client1' => 'pass1',
71
70
'client2' => 'pass2',
@@ -98,7 +97,7 @@ A controller that implements this interface simply looks like this::
98
97
class FooController extends Controller implements TokenAuthenticatedController
99
98
{
100
99
// An action that needs authentication
101
- public function barAction ()
100
+ public function bar ()
102
101
{
103
102
// ...
104
103
}
You can’t perform that action at this time.
0 commit comments