• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..10-Dec-2021-

Debug/H02-May-2015-443270

DependencyInjection/H02-May-2015-11162

CHANGELOG.mdH A D02-May-2015696 2419

ContainerAwareEventDispatcher.phpH A D02-May-20156.4 KiB203102

Event.phpH A D02-May-20153.1 KiB13132

EventDispatcher.phpH A D02-May-20155.5 KiB18698

EventDispatcherInterface.phpH A D02-May-20153 KiB9712

EventSubscriberInterface.phpH A D02-May-20151.5 KiB516

GenericEvent.phpH A D02-May-20153.8 KiB18763

ImmutableEventDispatcher.phpH A D02-May-20152.2 KiB9438

LICENSEH A D02-May-20151 KiB2016

README.mdH A D02-May-2015629 2819

README.md

1EventDispatcher Component
2=========================
3
4The Symfony EventDispatcher component implements the Mediator pattern in a
5simple and effective way to make your projects truly extensible.
6
7```php
8use Symfony\Component\EventDispatcher\EventDispatcher;
9use Symfony\Component\EventDispatcher\Event;
10
11$dispatcher = new EventDispatcher();
12
13$dispatcher->addListener('event_name', function (Event $event) {
14    // ...
15});
16
17$dispatcher->dispatch('event_name');
18```
19
20Resources
21---------
22
23You can run the unit tests with the following command:
24
25    $ cd path/to/Symfony/Component/EventDispatcher/
26    $ composer install
27    $ phpunit
28