8000 fix build · symfony/symfony-docs@ee11f90 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee11f90

Browse files
committed
fix build
1 parent e4eca48 commit ee11f90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cookbook/event_dispatcher/event_listener.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,12 @@ Listeners and subscribers can be used in the same application indistinctly. The
255255
decision to use either of them is usually a matter of personal taste. However,
256256
there are some minor advantages for each of them:
257257

258+
* **Subscribers are easier to reuse** because the knowledge of the events is kept
259+
in the class rather than in the service definition. This is the reason why
260+
Symfony uses subscribers internally;
261+
* **Listeners are more flexible** because bundles can enable or disable each of
262+
them conditionally depending on some configuration value.
263+
258264
Debugging Event Listeners
259265
-------------------------
260266

@@ -274,9 +280,3 @@ its name:
274280
.. code-block:: bash
275281
276282
$ php app/console debug:event-dispatcher kernel.exception
277-
=======
278-
* **Subscribers are easier to reuse** because the knowledge of the events is kept
279-
in the class rather than in the service definition. This is the reason why
280-
Symfony uses subscribers internally; 4217
281-
* **Listeners are more flexible** because bundles can enable or disable each of
282-
them conditionally depending on some configuration value.

0 commit comments

Comments
 (0)
0