X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FHelper.pm;h=e3c289540c49fd94080739ef700b2c0627cc6236;hp=c31df6755cd280bd08036f0d45c01de6f4670f1b;hb=74dafab798a163c251e09de7fcc21a267d1678a6;hpb=41ca9ba7190b75d9ee3adebf37188309cad986a4 diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index c31df67..e3c2895 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -461,6 +461,7 @@ __appclass__ package [% name %]; use strict; +use warnings; # -Debug activates the debug mode for very useful log messages # Static::Simple will serve static files from the root directory @@ -469,10 +470,10 @@ use Catalyst qw/-Debug Static::Simple/; our $VERSION = '0.01'; # Configure the application -[% name %]->config( name => '[% name %]' ); +__PACKAGE__->config( name => '[% name %]' ); # Start the application -[% name %]->setup; +__PACKAGE__->setup; =head1 NAME @@ -890,6 +891,7 @@ __compclass__ package [% class %]; use strict; +use warnings; use base 'Catalyst::Base'; =head1 NAME