> So the plugin *must* be registered prior to the foreach call being made
> if it's going to execute during execution of that hook.
I noticed that already, so I tried to make a workaround with manually
calling routeShutdown() method.
> You could always move the initialization to dispatchLoopStartup() --
> nothing executes between that hook and the routeShutdown() hook.
This is a good idea and point. The only problem could be if a plugin
registered prior to the new one needs the module initialization to be
done when its dispatchLoopStartup() method is called. But this situation
should not occur in the first place since it couples two plugins which
it shouldn't at all, I guess.
So, I think your solution should work fine. Thanks!
Best regards,
Ralf
没有评论:
发表评论