[Catalyst] setup() called twice
Christopher H. Laco
claco at chrislaco.com
Tue Jun 19 18:51:27 GMT 2007
Matt S Trout wrote:
> On Tue, Jun 19, 2007 at 06:19:30PM +0100, Matt Lawrence wrote:
>> Matt S Trout wrote:
>>> 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.
>>>
>>> =
>> Nothing like a bit of random abuse to spark off a bit of development wor=
k...
> =
> Shame it didn't spark off you actually going and reading what I suggested=
you
> did before you wasted your time and the list's.
> =
> Tell you what, I'll read the setup methods for you and spell it out:
Could I get a copy of you reading the Cat manual on tape for long road
trips? :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070619/b93f=
1bdd/signature.pgp
More information about the Catalyst
mailing list