Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

[READ-ONLY] Subtree split of the Symfony EventDispatcher Component -- clone into Symfony/Component/ (master at symfony/symfony)

Merge branch '2.4'

* 2.4:
  fixed types in phpdocs
  fixed types in phpdocs

Conflicts:
	src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php
	src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php
	src/Symfony/Component/Serializer/Encoder/JsonEncoder.php
	src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
	src/Symfony/Component/Validator/Mapping/ClassMetadata.php
	src/Symfony/Component/Validator/Mapping/ElementMetadata.php
	src/Symfony/Component/Validator/Mapping/MemberMetadata.php
	src/Symfony/Component/Validator/MetadataFactoryInterface.php
latest commit 133627e574
Fabien Potencier fabpot authored
Octocat-spinner-32 Debug made {@inheritdoc} annotations consistent across the board April 16, 2014
Octocat-spinner-32 DependencyInjection Merge branch '2.4' January 06, 2014
Octocat-spinner-32 Tests Merge branch '2.4' April 16, 2014
Octocat-spinner-32 .gitignore Added missing files .gitignore July 21, 2013
Octocat-spinner-32 CHANGELOG.md [EventDispatcher] Added TraceableEventDispatcher from HttpKernel December 28, 2013
Octocat-spinner-32 ContainerAwareEventDispatcher.php made {@inheritdoc} annotations consistent across the board April 16, 2014
Octocat-spinner-32 Event.php Merge branch '2.3' into 2.4 April 16, 2014
Octocat-spinner-32 EventDispatcher.php Merge branch '2.3' into 2.4 April 16, 2014
Octocat-spinner-32 EventDispatcherInterface.php fixed types in phpdocs April 16, 2014
Octocat-spinner-32 EventSubscriberInterface.php fixed CS July 09, 2012
Octocat-spinner-32 GenericEvent.php fixed types in phpdocs April 16, 2014
Octocat-spinner-32 ImmutableEventDispatcher.php [EventDispatcher] Rename UnmodifiableEventDispatcher to ImmutableEven… July 20, 2012
Octocat-spinner-32 LICENSE update year on licenses January 07, 2014
Octocat-spinner-32 README.md [EventDispatcher] tweaked README November 30, 2013
Octocat-spinner-32 composer.json [EventDispatcher] Added TraceableEventDispatcher from HttpKernel December 28, 2013
Octocat-spinner-32 phpunit.xml.dist made usage of Composer autoloader for subtree-split unit tests November 09, 2012
README.md

EventDispatcher Component

The Symfony2 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.phar install
$ phpunit
Something went wrong with that request. Please try again.