X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FUpgrading.pod;h=0e4b76f2568599fb8112894cbc9a30fa65472f42;hb=3db3a59fefa0cd2859282f7a3e0429a7152637c5;hp=608f42603c11eb934652c9b1e0c636121308af88;hpb=5d06547d51fe24fbaeea02047325ed4ef6dc4459;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Upgrading.pod b/lib/Catalyst/Upgrading.pod index 608f426..0e4b76f 100644 --- a/lib/Catalyst/Upgrading.pod +++ b/lib/Catalyst/Upgrading.pod @@ -34,7 +34,7 @@ The Catalyst plugin most often causing this, is L - if you are using this plugin and see issues, then please upgrade - and please try upgrading your plugins if you have this issue, as it has been fixed. Note that Makefile.PL in the -distribution will warn about known incompatible components. +distribution will warn about known incompatible components. This issue can, however, be found in your own application - the only solution is to go through each base class of the class the error was reported against, until @@ -99,14 +99,14 @@ compatible way is: 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 +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). +(although BUILDARGS is not). If you depend on Catalyst 5.8, then B Moose features work as expected. @@ -126,7 +126,11 @@ etc) then the correct technique is: package MyApp; use Moose; + use Catalyst; + extends 'Catalyst'; + + __PACKAGE__->config( name => 'MyApp' ); __PACKAGE__->setup(qw/ ConfigLoader /); @@ -226,7 +230,7 @@ The following test demonstrates the problem: BaseClass->foo('base class'); Child->foo('sub class'); - + use Test::More; isnt(BaseClass->can('foo'), Child->can('foo'));