[Catalyst] Plugin dependencies best practices
edencardim at gmail.com
Wed Nov 26 23:20:08 GMT 2008
On Wed, Nov 26, 2008 at 6:45 PM, Eric Wright <info at rapidsynergy.com> wrote:
> I wrote a plugin to add some global functionality to our apps which depends
> on Catalyst::Plugin::Authorization::ACL. The problem is trying to configure
> setup for this plugin. When I override setup or setup_actions the necessary
> engine for ACL has not yet been loaded unless I edit the source for ACL by
> moving its dispatch invocation of $app->NEXT::setup_actions(@_) to the end
> of its routine. Is there a better way to ensure that dependencies for your
> plugin are in place during setup?
Load your plugin before Auth::ACL and call $app->NEXT::setup_actions
before everything else
Eden Cardim Need help with your Catalyst or DBIx::Class project?
Code Monkey http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
More information about the Catalyst