X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FUpgrading.pod;h=e0c3ee660c04e71557ee9431ebbdfcd0b9f4a175;hp=98f2d9d906c1b2434ad1038b63cacba96a4ab0f4;hb=da73c6af7a4e16c1e2ccf179345a2a13f5d26b05;hpb=81e2964aaa2c62ad7a5eb3be4d1b436265e17038 diff --git a/lib/Catalyst/Upgrading.pod b/lib/Catalyst/Upgrading.pod index 98f2d9d..e0c3ee6 100644 --- a/lib/Catalyst/Upgrading.pod +++ b/lib/Catalyst/Upgrading.pod @@ -307,9 +307,27 @@ COMPONENT method in your @ISA. =head2 Actions in your application class Having actions in your application class will now emit a warning at application -startup as this is deprecated. It is highly recommended that these actions are moved +startup as this is deprecated.It is highly recommended that these actions are moved into a MyApp::Controller::Root (as demonstrated by the scaffold application -generated by catalyst.pl) +generated by catalyst.pl + +This warning, also affects tests. You should move actions in your test, creating a myTest::Controller::Root, like the following example: + + package MyTest::Controller::Root; + + use strict; + use warnings; + + use parent 'Catalyst::Controller'; + + __PACKAGE__->config(namespace => ''); + + sub action : Local { + my ( $self, $c ) = @_; + $c->do_something; + } + + 1; =head2 ::[MVC]:: naming scheme