Skip to content

Commit 31a2315

Browse files
Denis Dudarevjaviereguiluz
authored andcommitted
Observer instead of Mediator pattern
Actually EventDespacher component implements Observer pattern (GoF) but not a Mediator. I think we should change this description so as not to confuse users in the future.
1 parent ad83012 commit 31a2315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ 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 `Mediator`_ pattern
28+
The Symfony EventDispatcher component implements the `Observer`_ pattern
2929
in a simple and effective way to make all these things possible and to make
3030
your projects truly extensible.
3131

0 commit comments

Comments
 (0)