Bachir Soussi Chiadmi 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
..
Debug 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
DependencyInjection 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
Tests 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
CHANGELOG.md 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
ContainerAwareEventDispatcher.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
Event.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
EventDispatcher.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
EventDispatcherInterface.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
EventSubscriberInterface.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
GenericEvent.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
ImmutableEventDispatcher.php 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
LICENSE 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
README.md 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
composer.json 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây
phpunit.xml.dist 344dae1543 import from la bonne adresse and first refactoring for ouidade.com 7 năm trước cách đây

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