Re: Event_Dispatcher request

From: Date: Wed, 27 Jul 2005 09:06:45 +0000
Subject: Re: Event_Dispatcher request
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38962@lists.php.net to get a copy of this message
Hi,
If by reading you mean something like toString() or toArray(), then it's fine with me. To debug Event_Dispatcher, it's also possible to have a listener that listens to all the notifications and log them somewhere. And how do I debug whether my listeners were correctly added? That's not possible without having methods like observerRegistered() and getObservers(). Not that I need this currently in PHP, but my Java Version at least has the last method and I'm using this a lot, as I add new observers in observers of other events and so it's nice to be able to check if the dispatcher is configured as I wanted to.
Stephan

« previous php.pear.dev (#38962) next »