X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FUpgrading.pod;h=094191d28c42584efee5508128d6fde9c6ad261f;hb=f3311a32b9336f2afaab46caecb62cf8775f4050;hp=6012f989e51621734141ee064a07f101a20f1ac6;hpb=3e5607485bfedb02a06193f653a2f05202db7a4e;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Upgrading.pod b/lib/Catalyst/Upgrading.pod index 6012f98..094191d 100644 --- a/lib/Catalyst/Upgrading.pod +++ b/lib/Catalyst/Upgrading.pod @@ -2,6 +2,16 @@ Catalyst::Upgrading - Instructions for upgrading to the latest Catalyst +=head1 Upgrading to Catalyst 5.90100 + +The method C in L was actually returning the first error. This has +been fixed but there is a small chance it could be a breaking issue for you. If this gives +you trouble changing to C is the easiest workaround (although that does +modify the error stack so if you are relying on that not being changed you should try something +like @{$c->errors}[-1] instead. Since this method is relatively new and the cases when the +error stack actually has more than one error in it, we feel the exposure is very low, but bug +reports are very welcomed. + =head1 Upgrading to Catalyst 5.90090 L has a new method 'inject_component' which works the same as the method of @@ -63,16 +73,25 @@ In L: MyApp->config( 'Model::MyClass' => { - class => + class => 'MyClass', + args => { %args }, }); - - class My::Class - - some param - - +and now in core: + + MyApp->config( + inject_components => { + 'Model::MyClass' => { from_component => 'My::Class' }, + }, + 'Model::MyClass' => { + %args + }, + ); + +Although the cored behavior requires more code, its better separates concerns +as well as plays more into core Catalyst expections of how configuration shoul +look. Also we added a new develop console mode only warning when you call a component with arguments that don't expect or do anything meaningful with those args. Its