[Catalyst] setup() called twice

Matt S Trout dbix-class at trout.me.uk
Tue Jun 19 17:49:45 GMT 2007


On Tue, Jun 19, 2007 at 04:52:08PM +0100, Matt Lawrence wrote:
> Matt S Trout wrote:
> > On Tue, Jun 19, 2007 at 09:50:30AM +0100, Matt Lawrence wrote:
> >>
> >> What's wrong with:
> >>
> >> $_->setup for keys %{$self->_plugins};
> >>     
> >
> > Setup order matters.
> >
> >   
> 
> Fine, the order is known in setup(), but gets discarded.
> 
> $class->setup_plugins($flags->{plugins});
> 
> ...
> 
> # Call plugins' setup
> $_->setup for @{delete $flags->{plugins} || []};

Still completely broken.

Read half a dozen plugins' setup methods and come back when you have a clue.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list