Also, be careful not to get the publish/subscribe thing confused with
something like a strategy. Your insert, log, and email steps are not likely
to be independent from each other. Publish/subscribe make me think in terms
of some independence between different subscribers.


Will Lowe <[EMAIL PROTECTED]> wrote on 04/20/2005 12:28:26 PM:

> >  In POE, is it possible to register multiple event handlers for a
single
> > event? sort of like publish/subscribe messaging. For example, suppose I
have
> > an "order" event, I'd like several handlers to be invoked: one to
insert
> > into db, one to log, one to send email, etc. I could send multiple
events,
> > but that's not as nice.
>
> Just have the one handler you register call the others?  Via
> $kernel->yield() or direct &foo(); calls?
>
> --
>         Will

Reply via email to