8000 Mention that the component implements both patterns · symfony/symfony-docs@21ed3d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 21ed3d2

Browse files
committed
Mention that the component implements both patterns
1 parent 44e1e45 commit 21ed3d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/event_dispatcher.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ before or after a method is executed, without interfering with other plugins.
2525
This is not an easy problem to solve with single inheritance, and even if
2626
multiple inheritance was possible with PHP, it comes with its own drawbacks.
2727

28-
The Symfony EventDispatcher component implements the `Observer`_ pattern
29-
in a simple and effective way to make all these things possible and to make
30-
your projects truly extensible.
28+
The Symfony EventDispatcher component implements the `Mediator`_ and `Observer`_
29+
design patterns to make all these things possible and to make your projects
30+
truly extensible.
3131

3232
Take a simple example from :doc:`the HttpKernel component </components/http_kernel>`.
3333
Once a ``Response`` object has been created, it may be useful to allow other
@@ -522,6 +522,7 @@ Learn More
522522
* :ref:`The kernel.event_listener tag <dic-tags-kernel-event-listener>`
523523
* :ref:`The kernel.event_subscriber tag <dic-tags-kernel-event-subscriber>`
524524

525+
.. _Mediator: https://en.wikipedia.org/wiki/Mediator_pattern
525526
.. _Observer: https://en.wikipedia.org/wiki/Observer_pattern
526527
.. _Closures: https://php.net/manual/en/functions.anonymous.php
527528
.. _PHP callable: https://php.net/manual/en/language.pseudo-types.php#language.types.callback

0 commit comments

Comments
 (0)
0