Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4d5ebc4

Browse filesBrowse 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
Copy full SHA for 4d5ebc4

File tree

Expand file treeCollapse file tree

2 files changed

+7
-8
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-8
lines changed

‎event_dispatcher.rst

Copy file name to clipboardExpand all lines: event_dispatcher.rst
+2-2Lines 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

Copy file name to clipboardExpand all lines: event_dispatcher/before_after_filters.rst
+5-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.