Download the PHP package gandung/event-dispatcher without Composer
On this page you can find all versions of the php package gandung/event-dispatcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gandung/event-dispatcher
More information about gandung/event-dispatcher
Files in gandung/event-dispatcher
Package event-dispatcher
Short Description A simple event dispatcher library written in PHP
License BSD-3-Clause
Informations about the package event-dispatcher
Event Dispatcher
This is a simple library for managing event (e.g, http-kernel event, exception event) which utilizes Symfony event dispatcher class interface as event dispatcher object and Symfony event subscriber class interface as event subscriber (or listener collection) for current event dispatcher object.
This event dispatcher library uses several design patterns for extendibility and maintainability:
- Observer Pattern to maintain state between observer (listener) and observable (event) object.
- Mediator Pattern to make all things truly extensible.
Table Of Content
- Quick Start
- API
- EventDispatcherFactory
- EventDispatcher
Quick Start
EventDispatcher object instantiation
or, you can do it with a factory.
Resolving events using simple closure based listener
Resolving events using simple object based listener
Resolving subscribed events
API
EventDispatcherFactory
Return the EventDispatcher object instance.
EventDispatcher
Append listener handler to specified event.
Remove listener handler to specified event.
Get listener that bind on specified event.
Determine if specified event name has listeners.
Set event listener priority.
Get event listener priority.
Register event subscriber.
Remove event subscriber.
Dispatch the specified event.
All versions of event-dispatcher with dependencies
phpunit/phpunit Version ~4.0
symfony/var-dumper Version 3.4.x-dev