[Catalyst] use base vs use parent
Bill Moseley
moseley at hank.org
Tue Aug 25 22:07:23 GMT 2009
On Tue, Aug 25, 2009 at 11:55 AM, Evan Carroll <lists at evancarroll.com>wrote:
>
>
>> When should be "use parent" be used and not "use base" or it really
>> doesn't matter which one is used?
>>
>>
> parent.pm when you can use cpan, base.pm when you can't.
>
If it's a Moose class should you always use "extends" over both?
Hum, the CatalystAndMoose manual doesn't even show the application base
class inheriting:
http://search.cpan.org/~hkclark/Catalyst-Manual-5.8000/lib/Catalyst/Manual/=
CatalystAndMoose.pod#THE_CONTEXT_CLASS
Unlike in the Intro which shows "use parent."
(The CatAndMoose page also shows $app, which isn't defined).
Not sure if this is by design or not, but the application base class
automatically inherits from Catalyst and Catalyst::Controller.
-- =
Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090825/5d532=
db4/attachment.htm
More information about the Catalyst
mailing list