phalcon/cphalcon — pull request #86 by racklin (2012-09-15 07:48:45+00:00)
Title: Added EventManager::fire can send extra data to event listener.

Hi,

I have patched EventManager and Event class that EventManager::fire can send data to EventLisener.

It's useful that we can send (temperate) data to event listener instead of setting in object's properties.

And I also patched CLI\Console , Mvc\Application 's 'beforeStartModule' and 'afterStartModule' send module_name to event listener, so listener can determine which module will starting or started.

Similar:
http://api.jquery.com/event.data/

Signed-off-by: Rack Lin racklin@gmail.com