[Catalyst-dev] Feature request: post_setup.

Matt S Trout dbix-class at trout.me.uk
Mon Dec 24 19:02:08 GMT 2007


On Sun, Dec 23, 2007 at 08:56:45PM +0300, Oleg Pronin wrote:
> It is very often and in many applications and plugins needed to do something
> on the setup phase after all of applications models, view etc have been
> initialized.
> For example, a dynamic admin interface plugin needs to initialize its data
> using infomation from all avaliable models.
> The 'setup' callback is called before any model, controller and view have
> been initialized.
> Therefore it would be cool to add the 'post_setup' callback which will be
> called on application's mixin right before the end of setup:
> 
> In Catalyst.pm in 'setup' method right before expression:
> 
>     $class->setup_finished(1);

setup_finished already is this hook. Just wrap that and check for @_ > 1

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the Catalyst-dev mailing list