[Catalyst] RFC: Catalyst::Plugin::SpecialAction::Trail
BUCHMULLER Norbert
norbi.lists at nix.hu
Wed Jun 1 22:19:22 GMT 2011
On Wed, 1 Jun 2011 21:34:25 +0100 Tomas Doran wrote:
> Monkey patching Catalyst::Controller is a horrible horrible horrible
> idea, please don't do that!
>
> If (for example) one were to load two Catalyst apps at once (e.g.
> FCGI::Engine running multiple apps, or one mod_perl instance with two
> apps), then this would result in both applications getting the
> behavior, which I'm quite sure is not what you intended.
True. One tends to forget that there can be multiple instances of
Catalyst in one process.
> If you really need to do this, then apply the roles to the controller
> _instances_ after they have been initialized.
Advice taken, now only patching the C:C instances.
Thanks for the comment!
norbi
More information about the Catalyst
mailing list