8000 EventDispatch implements the Mediator pattern, not the Observer pattern · dhepper/symfony-docs@5c0e52c · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c0e52c

Browse files
johnkaryweaverryan
authored andcommitted
EventDispatch implements the Mediator pattern, not the Observer pattern
1 parent d1ca623 commit 5c0e52c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/event_dispatcher/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ or after a method is executed, without interfering with other plugins. This is
2020
not an easy problem to solve with single inheritance, and multiple inheritance
2121
(were it possible with PHP) has its own drawbacks.
2222

23-
The Symfony2 Event Dispatcher component implements the `Observer`_ pattern in
23+
The Symfony2 Event Dispatcher component implements the `Mediator`_ pattern in
2424
a simple and effective way to make all these things possible and to make your
2525
projects truly extensible.
2626

@@ -597,7 +597,7 @@ part of the listener's processing logic::
597597
}
598598
}
599599

600-
.. _Observer: http://en.wikipedia.org/wiki/Observer_pattern
600+
.. _Mediator: http://en.wikipedia.org/wiki/Mediator_pattern
601601
.. _Closures: http://php.net/manual/en/functions.anonymous.php
602602
.. _PHP callable: http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback
603603
.. _Packagist: https://packagist.org/packages/symfony/event-dispatcher

0 commit comments

Comments
 (0)
0