Skip to content

Commit 9c02eda

Browse files
committed
unify EventDispatcher/event dispatcher usages
1 parent fd52cd3 commit 9c02eda

File tree

7 files changed

+27
-23
lines changed

7 files changed

+27
-23
lines changed

Diff for: book/internals.rst

+6-4
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ add the following code at the beginning of your listener method::
238238

239239
.. tip::
240240

241-
If you are not yet familiar with the Symfony EventDispatcher, read the
242-
:doc:`EventDispatcher component documentation </components/event_dispatcher/introduction>`
241+
If you are not yet familiar with the Symfony EventDispatcher component,
242+
read :doc:`its documentation </components/event_dispatcher/introduction>`
243243
section first.
244244

245245
.. index::
@@ -433,8 +433,10 @@ and set a new ``Exception`` object, or do nothing::
433433
.. index::
434434
single: EventDispatcher
435435

436-
The EventDispatcher
437-
-------------------
436+
.. _the-eventdispatcher:
437+
438+
The EventDispatcher Component
439+
-----------------------------
438440

439441
The EventDispatcher is a standalone component that is responsible for much
440442
of the underlying logic and flow behind a Symfony request. For more information,

Diff for: components/event_dispatcher/container_aware_dispatcher.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Introduction
88
------------
99

1010
The :class:`Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher` is
11-
a special EventDispatcher implementation which is coupled to the service container
11+
a special ``EventDispatcher`` implementation which is coupled to the service container
1212
that is part of :doc:`the DependencyInjection component </components/dependency_injection/introduction>`.
13-
It allows services to be specified as event listeners making the EventDispatcher
13+
It allows services to be specified as event listeners making the ``EventDispatcher``
1414
extremely powerful.
1515

1616
Services are lazy loaded meaning the services attached as listeners will only be
@@ -31,8 +31,8 @@ into the :class:`Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatc
3131
Adding Listeners
3232
----------------
3333

34-
The *Container Aware EventDispatcher* can either load specified services
35-
directly, or services that implement :class:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface`.
34+
The ``ContainerAwareEventDispatcher`` can either load specified services
35+
directly or services that implement :class:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface`.
3636

3737
The following examples assume the service container has been loaded with any
3838
services that are mentioned.

Diff for: components/event_dispatcher/introduction.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ specifically pass one::
591591

592592
$dispatcher->dispatch('foo.event');
593593

594-
Moreover, the EventDispatcher always returns whichever event object that was
595-
dispatched, i.e. either the event that was passed or the event that was
594+
Moreover, the event dispatcher always returns whichever event object that
595+
was dispatched, i.e. either the event that was passed or the event that was
596596
created internally by the dispatcher. This allows for nice shortcuts::
597597

598598
if (!$dispatcher->dispatch('foo.event')->isPropagationStopped()) {

Diff for: components/form/form_events.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ Form Events
55
===========
66

77
The Form component provides a structured process to let you customize your
8-
forms, by making use of the :doc:`EventDispatcher </components/event_dispatcher/introduction>`
9-
component. Using form events, you may modify information or fields at
10-
different steps of the workflow: from the population of the form to the
11-
submission of the data from the request.
8+
forms, by making use of the
9+
:doc:`EventDispatcher component </components/event_dispatcher/introduction>`.
10+
Using form events, you may modify information or fields at different steps
11+
of the workflow: from the population of the form to the submission of the
12+
data from the request.
1213

1314
Registering an event listener is very easy using the Form component.
1415

Diff for: components/http_kernel/introduction.rst

+8-7
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ The HttpKernel Component
77
========================
88

99
The HttpKernel component provides a structured process for converting
10-
a ``Request`` into a ``Response`` by making use of the EventDispatcher.
11-
It's flexible enough to create a full-stack framework (Symfony), a micro-framework
12-
(Silex) or an advanced CMS system (Drupal).
10+
a ``Request`` into a ``Response`` by making use of the EventDispatcher
11+
component. It's flexible enough to create a full-stack framework (Symfony),
12+
a micro-framework (Silex) or an advanced CMS system (Drupal).
1313

1414
Installation
1515
------------
@@ -79,10 +79,11 @@ and talks about how one specific implementation of the HttpKernel - the Symfony
7979
Framework - works.
8080

8181
Initially, using the :class:`Symfony\\Component\\HttpKernel\\HttpKernel`
82-
is really simple, and involves creating an :doc:`EventDispatcher </components/event_dispatcher/introduction>`
83-
and a :ref:`controller resolver <component-http-kernel-resolve-controller>`
84-
(explained below). To complete your working kernel, you'll add more event
85-
listeners to the events discussed below::
82+
is really simple and involves creating an
83+
:doc:`event dispatcher </components/event_dispatcher/introduction>` and a
84+
:ref:`controller resolver <component-http-kernel-resolve-controller>` (explained
85+
below). To complete your working kernel, you'll add more event listeners
86+
to the events discussed below::
8687

8788
use Symfony\Component\HttpFoundation\Request;
8889
use Symfony\Component\HttpKernel\HttpKernel;

Diff for: cookbook/bundles/configuration.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ bundle configuration would look like:
117117

118118
.. seealso::
119119

120-
For parameter handling within a Dependency Injection class see
120+
For parameter handling within a dependency injection container see
121121
:doc:`/cookbook/configuration/using_parameters_in_dic`.
122122

123123

Diff for: cookbook/form/dynamic_form_modification.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ or if an existing product is being edited (e.g. a product fetched from the datab
7777

7878
Suppose now, that you don't want the user to be able to change the ``name`` value
7979
once the object has been created. To do this, you can rely on Symfony's
80-
:doc:`EventDispatcher </components/event_dispatcher/introduction>`
80+
:doc:`EventDispatcher component </components/event_dispatcher/introduction>`
8181
system to analyze the data on the object and modify the form based on the
8282
Product object's data. In this entry, you'll learn how to add this level of
8383
flexibility to your forms.

0 commit comments

Comments
 (0)