Fork of Symfony's Event Dispatcher compatible with PHP 5.2+.
Fork of Symfony's Event Dispatcher component compatible with PHP 5.2+.
Symfony's Event Dispatcher component is a fantastic library, but it's only compatible with PHP 5.3+. While 97% of PHP servers run PHP 5.2 or higher, 32% of all servers are still running PHP 5.2 or lower (source). It would be a shame to exempt this library from nearly half of the world's servers just because of a few version incompatibilities.
Once PHP 5.3+ adoption levels near closer to 100%, this library will be retired.
Differences from Symfony's Event Dispatcher component
The primary difference is naming conventions of the Symfony classes.
Instead of the
\Symfony\Component\EventDispatcher namespace (and sub-namespaces), prefix the Symfony class names
ehough_tickertape and follow the PEAR naming convention
A few examples of class naming conversions:
\Symfony\Component\EventDispatcher\EventDispatcher -----> ehough_tickertape_EventDispatcher \Symfony\Component\EventDispatcher\Event -----> ehough_tickertape_Event
$dispatcher = new ehough_tickertape_EventDispatcher(); //implements ehough_tickertape_EventDispatcherInterface $dispatcher->addListener('event_name', $callback); $dispatcher->dispatch('event_name');
Releases are synchronized with the upstream Symfony repository. e.g.
ehough/tickertape v2.3.1 has merged the code