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
258258
259259.. toctree ::
260260 :maxdepth: 1
261- :glob:
262261
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.
3333Before Filters with the ``kernel.controller `` Event
3434---------------------------------------------------
3535
36- First, store some basic token configuration using ``config.yml `` and the
37- parameters key:
36+ First, define some token configuration as parameters:
3837
3938.. configuration-block ::
4039
4140 .. code-block :: yaml
4241
43- # app/ config/config.yml
42+ # config/services.yaml
4443 parameters :
4544 tokens :
4645 client1 : pass1
4746 client2 : pass2
4847
4948 .. code-block :: xml
5049
51- <!-- app/ config/config .xml -->
50+ <!-- config/services .xml -->
5251 <?xml version =" 1.0" encoding =" UTF-8" ?>
5352 <container xmlns =" http://symfony.com/schema/dic/services"
5453 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -65,7 +64,7 @@ parameters key:
6564
6665 .. code-block :: php
6766
68- // app/ config/config .php
67+ // config/services .php
6968 $container->setParameter('tokens', array(
7069 'client1' => 'pass1',
7170 'client2' => 'pass2',
@@ -98,7 +97,7 @@ A controller that implements this interface simply looks like this::
9897 class FooController extends Controller implements TokenAuthenticatedController
9998 {
10099 // An action that needs authentication
101- public function barAction ()
100+ public function bar ()
102101 {
103102 // ...
104103 }
You can’t perform that action at this time.
0 commit comments