alimiracle 24e7577a47 make all 9 rokov pred
..
Debug 24e7577a47 make all 9 rokov pred
DependencyInjection 24e7577a47 make all 9 rokov pred
Tests 24e7577a47 make all 9 rokov pred
.gitignore 24e7577a47 make all 9 rokov pred
CHANGELOG.md 24e7577a47 make all 9 rokov pred
ContainerAwareEventDispatcher.php 24e7577a47 make all 9 rokov pred
Event.php 24e7577a47 make all 9 rokov pred
EventDispatcher.php 24e7577a47 make all 9 rokov pred
EventDispatcherInterface.php 24e7577a47 make all 9 rokov pred
EventSubscriberInterface.php 24e7577a47 make all 9 rokov pred
GenericEvent.php 24e7577a47 make all 9 rokov pred
ImmutableEventDispatcher.php 24e7577a47 make all 9 rokov pred
LICENSE 24e7577a47 make all 9 rokov pred
README.md 24e7577a47 make all 9 rokov pred
composer.json 24e7577a47 make all 9 rokov pred
phpunit.xml.dist 24e7577a47 make all 9 rokov pred

README.md

EventDispatcher Component

The Symfony2 EventDispatcher component implements the Mediator pattern in a simple and effective way to make your projects truly extensible.

use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\Event;

$dispatcher = new EventDispatcher();

$dispatcher->addListener('event_name', function (Event $event) {
    // ...
});

$dispatcher->dispatch('event_name');

Resources

You can run the unit tests with the following command:

$ cd path/to/Symfony/Component/EventDispatcher/
$ composer.phar install
$ phpunit