Skip to content

Commit 4d5ebc4

Browse files
committed
minor #8670 Updated the event dispatcher articles for Symfony 4 (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Updated the event dispatcher articles for Symfony 4 Commits ------- 8dc70ec Updated the event dispatcher articles for Symfony 4
2 parents c170045 + 8dc70ec commit 4d5ebc4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

event_dispatcher.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

event_dispatcher/before_after_filters.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,21 @@ token.
3333
Before 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
}

0 commit comments

Comments
 (0)