From: Tomas Doran Date: Sat, 18 Apr 2009 17:43:43 +0000 (+0000) Subject: Clarify the component back compat section, and add info about 5.71001 X-Git-Tag: 5.80001~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=3df46b1b3e320f5ff43b6d66d42f3277300efda2 Clarify the component back compat section, and add info about 5.71001 --- diff --git a/lib/Catalyst/Upgrading.pod b/lib/Catalyst/Upgrading.pod index 69141d7..65b1d61 100644 --- a/lib/Catalyst/Upgrading.pod +++ b/lib/Catalyst/Upgrading.pod @@ -82,10 +82,18 @@ compatible way is: BEGIN { extends 'Catalyst::Component' }; # Or ::Controller, or whatever Note that the C< extends > declaration needs to occur in a begin block for -L to operate correctly. You also don't get the L -constructor, and therefore attribute initialization will not work as normally -expected. If you want to use Moose attributes, then they need to be made lazy -to correctly initialize. +L to operate correctly. + +You also don't get the L constructor, and therefore attribute +initialization will not work as normally expected. If you want to use Moose +attributes, then they need to be made lazy to correctly initialize. + +Note that this only applies if your component needs to maintain component +backwards compatibility for Catalyst versions before 5.71001 - in 5.71001 +attributes work as expected, and the BUILD method is called normally +(although BUILDARGS is not). + +If you depend on Catalyst 5.8, then B Moose features work as expected. =head3 use Moose in MyApp