David 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
..
Debug 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
DependencyInjection 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
Tests 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
CHANGELOG.md 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
ContainerAwareEventDispatcher.php 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
Event.php 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
EventDispatcher.php 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
EventDispatcherInterface.php 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
EventSubscriberInterface.php 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
GenericEvent.php 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
ImmutableEventDispatcher.php 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
LICENSE 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
README.md 228fc0d08c De TakaraSoftware vers IIMT hace 4 años
phpunit.xml.dist 228fc0d08c De TakaraSoftware vers IIMT hace 4 años

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