Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/vendor/symfony/event-dispatcher
Yannick Warnier 93566e8613 Add static resources for release 10 years ago
..
Debug Add static resources for release 10 years ago
DependencyInjection Add static resources for release 10 years ago
Tests Add static resources for release 10 years ago
.gitignore Add static resources for release 10 years ago
CHANGELOG.md Add static resources for release 10 years ago
ContainerAwareEventDispatcher.php Add static resources for release 10 years ago
Event.php Add static resources for release 10 years ago
EventDispatcher.php Add static resources for release 10 years ago
EventDispatcherInterface.php Add static resources for release 10 years ago
EventSubscriberInterface.php Add static resources for release 10 years ago
GenericEvent.php Add static resources for release 10 years ago
ImmutableEventDispatcher.php Add static resources for release 10 years ago
LICENSE Add static resources for release 10 years ago
README.md Add static resources for release 10 years ago
composer.json Add static resources for release 10 years ago
phpunit.xml.dist Add static resources for release 10 years ago

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