removed observer pattern, in favour of mediator

This commit is contained in:
Giulio De Donato 2013-10-19 13:02:52 +02:00 committed by Fabien Potencier
parent 3b703291d9
commit b9ad62e15c
2 changed files with 4 additions and 3 deletions

View File

@ -21,7 +21,7 @@ namespace Symfony\Component\EventDispatcher;
class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate
{
/**
* Observer pattern subject.
* Event subject.
*
* @var mixed usually object or callable
*/

View File

@ -1,8 +1,9 @@
EventDispatcher Component
=========================
EventDispatcher implements a lightweight version of the Observer design
pattern.
The Symfony2 Event Dispatcher component implements the Mediator pattern
in a simple and effective way to make all these things possible and
to make your projects truly extensible.
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\Event;