Great, thanks for looking into it. I have one more suggestion, isn't it better to rename "getListenersForEvent" to "getEventListeners" ?
On Tuesday, August 28, 2018 at 7:53:34 PM UTC+5, Larry Garfield wrote: > > Mainly because we didn't feel like typing a longer name, I think. Nothing > more deep than that. > > That said, I checked and Symfony currently uses isPropagationStopped(). > So we > may want to use the same to help with transitional code. I'll add that to > the > agenda for our next call to discuss. Thanks for the catch! > > --Larry Garfield > > On Friday, August 24, 2018 8:10:09 PM CDT desig...@gmail.com <javascript:> > wrote: > > Sorry, correction, I meant .. > > > > "... so shouldn't "isPropagationStopped" make more sense here as the > > dispatcher would know that "event propagation" has been stopped by the > > previous listener?" > > > > On Saturday, August 25, 2018 at 6:06:31 AM UTC+5, desig...@gmail.com > wrote: > > > I'm very curious to know if there was a particular reason why > > > StoppableTaskInterface::isStopped() was not named > StoppableTaskInterface:: > > > isPropagationStopped() ? > > > > > > The method description says "This will typically only be used by the > > > dispatcher to *determine if the previous listener halted > propagation*." > > > -- so shouldn't "isPropagationStopped" make more sense here as the > events > > > down the chain would know that "event propagation" has been stopped? > > > > > > On Tuesday, August 21, 2018 at 3:23:14 AM UTC+5, Larry Garfield wrote: > > >> We had another good call with most of the Working Group present. > This > > >> time we > > >> went over several trial implementations that various Working Group > > >> members > > >> have built, to varying levels of completeness. They're available > here > > >> (although their workingness at any given moment is not guaranteed, as > the > > >> spec > > >> evolves): > > >> > > >> Larry: https://github.com/Crell/Tukio > > >> Benni: https://github.com/bmack/kart > > >> Cees-Jan: https://github.com/wyrihaximus/php-broadcast > > >> Matthew: https://github.com/phly/phly-event-dispatcher > > >> > > >> On the whole we're pretty happy with where things are, although we > did > > >> come up > > >> with a number of additional spec tweeks to make. The biggest is > changing > > >> the > > >> namespace of the package to Psr\EventDispatcher (rather than > Psr\Event > > >> \Dispatcher). We're going to continue to do another round of > > >> implementing; in > > >> particular, Liz Smith is working on an event driven CLI app and > Cees-Jan > > >> has > > >> agreed to try a Promise-as-Event implementation to make sure it > works. > > >> > > >> (It > > >> > > >> should, but better to actually do it.) > > >> > > >> We've also started building a util library to go along with the spec, > > >> which is > > >> available here: > > >> > > >> https://github.com/php-fig/event-dispatcher-util > > >> > > >> Open questions are mostly around error handling minutia. The big one > is > > >> whether it's appropriate, inappropriate, or required to have an > > >> ErrorEvent > > >> that is also itself an Exception, and thus can be thrown. > > >> > > >> For those following along at home, the latest code for the spec > > >> interfaces is > > >> here: > > >> > > >> https://github.com/php-fig/event-dispatcher > > >> > > >> And you should use the 0.4.0 tag for the latest version. > > >> > > >> On the agenda for next time is what, if any, optional interfaces we > > >> include in > > >> the util package for registering listeners in providers manually > (which > > >> is the > > >> most common case), and what they should support. > > >> > > >> --Larry Garfield > > >> PSR-14 Editor > > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscr...@googlegroups.com. To post to this group, send email to php-fig@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/76f3484d-498c-433a-a71d-9b170d638404%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.