…and target dirs
It was previously agreed to re-license the Doctrine2 based EventDispatcher refactoring to use the MIT license. However, the files still retain the LGPL license notice. This commit changes the license to MIT.
This in effect removes the direct link between event name and the method name on the handler. Any callback can be given as a handler and the event name becomes an arbitrary string. Allowing for easier namespacing (see next commit)
… avoid collisions
* The array returned by getListeners() now removes the listener hash as the key (as this is an implementation detail) * The sort method now guarantees that a listener registered before another will stay in the same order even for the same priority (for BC) * Made various optimizations
… first) -- this makes the new system more compatible with the old one
…ger clone in Symfony2 (now called EventDispatcher again)