Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.0

Doc Bug #18926 addObserver() doesn't notify of pending notifications for new global observer
Submitted: 2011-10-23 22:31 UTC
From: jausions Assigned:
Status: Open Package: Event_Dispatcher (version 1.1.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2011-10-23 22:31 UTC] jausions (Philippe Jausions)
Description: ------------ If a new observer is added to the dispatcher with EVENT_DISPATCHER_GLOBAL, all existing pending notifications are NOT sent. This is borderline buggy behavior. This ticket could be converted to "Request" with addObserver() taking an additional parameter to force all the pending notifications to be sent to the new observer. (Or create a addGlobalObserver() method that would do it.) At the very least, documentation should be updated to reflect that limitation. It is currently a little bit misleading.

Comments