drupal/core/vendor/symfony/event-dispatcher
Nathaniel Catchpole eafa3a2aa0 Issue #2533360 by hussainweb: Upgrade to Symfony 2.7.2 2015-07-15 12:03:49 +01:00
..
Debug Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
DependencyInjection Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
Tests Issue #2533360 by hussainweb: Upgrade to Symfony 2.7.2 2015-07-15 12:03:49 +01:00
.gitignore Issue #2504967 by hussainweb, joshtaylor, jibran, Berdir: Upgrade to Symfony 2.7.1 2015-07-13 13:49:14 +01:00
CHANGELOG.md Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
ContainerAwareEventDispatcher.php Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
Event.php Issue #2504967 by hussainweb, joshtaylor, jibran, Berdir: Upgrade to Symfony 2.7.1 2015-07-13 13:49:14 +01:00
EventDispatcher.php Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
EventDispatcherInterface.php Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
EventSubscriberInterface.php Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
GenericEvent.php Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
ImmutableEventDispatcher.php Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
LICENSE Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
README.md Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
composer.json Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00
phpunit.xml.dist Issue #2470693 by dawehner, Berdir, jibran, hussainweb, pwolanin, znerol: Upgrade to Symfony 2.7.0 2015-06-01 11:47:08 +01:00

README.md

EventDispatcher Component

The Symfony 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 install
$ phpunit