Bachir Soussi Chiadmi 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
..
Debug 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
DependencyInjection 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
Tests 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
CHANGELOG.md 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
ContainerAwareEventDispatcher.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
Event.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
EventDispatcher.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
EventDispatcherInterface.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
EventSubscriberInterface.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
GenericEvent.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
ImmutableEventDispatcher.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
LICENSE 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
README.md 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
composer.json 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce
phpunit.xml.dist 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 yıl önce

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