Thanks Kamen!, that sounds something worth spending time into.

>   Create your own system of registration for all "sub-events". Then make
> a small proprietary API where all your consumers register themselves, with
> any extra data needed (priority perhaps? prerequisites?). Build a single
> event handler in your main module (I assume there is one) that processes
> and dispatches notifications based on what's been registered through the
> API.
>
> Do NOT try to put everything in that single event. Get a callback system
> in place, running on top of your custom 'metadata' that knows what should
> be invoked and when.
>
> It's a lot of work, yes, but if long-term stability and ease of
> maintenance are super important to you, the investment in effort will pay
> off.
>
> K.
>
>


--

Reply via email to