Skip to content

Commit 7aa94a2

Browse files
committed
Merge pull request #1714 from richardmiller/cleaning_up_di_terminology
Tidying up some DI related terminology
2 parents e03808c + c66d7da commit 7aa94a2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

components/event_dispatcher/container_aware_dispatcher.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. index::
2-
single: Event Dispatcher; Container Aware; Dependency Injection; DIC
2+
single: Event Dispatcher; Service container aware
33

44
The Container Aware Event Dispatcher
55
====================================
@@ -11,9 +11,10 @@ Introduction
1111
------------
1212

1313
The :class:`Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher` is
14-
a special event dispatcher implementation which is coupled to the Symfony2
15-
Dependency Injection Container Component (DIC). It allows DIC services to be
16-
specified as event listeners making the event dispatcher extremely powerful.
14+
a special event dispatcher implementation which is coupled to the service container
15+
that is part of :doc:`the Dependency Injection component</components/dependency_injection/introduction>`.
16+
It allows services to be specified as event listeners making the event dispatcher
17+
extremely powerful.
1718

1819
Services are lazy loaded meaning the services attached as listeners will only be
1920
created if an event is dispatched that requires those listeners.
@@ -36,12 +37,12 @@ Adding Listeners
3637
The *Container Aware Event Dispatcher* can either load specified services
3738
directly, or services that implement :class:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface`.
3839

39-
The following examples assume the DIC has been loaded with any services that
40-
are mentioned.
40+
The following examples assume the service container has been loaded with any
41+
services that are mentioned.
4142

4243
.. note::
4344

44-
Services must be marked as public in the DIC.
45+
Services must be marked as public in the container.
4546

4647
Adding Services
4748
~~~~~~~~~~~~~~~
@@ -95,4 +96,4 @@ The ``EventSubscriberInterface`` will be exactly as you would expect::
9596
{
9697
// ...
9798
}
98-
}
99+
}

0 commit comments

Comments
 (0)