[Catalyst-commits] r11309 - in
Catalyst-Devel/1.00/branches/helper_refactor: . share
share/lib share/lib/MyApp/Controller
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sat Sep 5 15:15:39 GMT 2009
Author: t0m
Date: 2009-09-05 15:15:37 +0000 (Sat, 05 Sep 2009)
New Revision: 11309
Modified:
Catalyst-Devel/1.00/branches/helper_refactor/
Catalyst-Devel/1.00/branches/helper_refactor/share/Makefile.PL.tt
Catalyst-Devel/1.00/branches/helper_refactor/share/lib/MyApp.pm.tt
Catalyst-Devel/1.00/branches/helper_refactor/share/lib/MyApp/Controller/Root.pm.tt
Log:
r11316 at tomas-dorans-macbook-pro: t0m | 2009-09-05 12:11:59 +0100
Change generated application skeleton to use Moose
Property changes on: Catalyst-Devel/1.00/branches/helper_refactor
___________________________________________________________________
Name: svk:merge
- 4ad37cd2-5fec-0310-835f-b3785c72a374:/Catalyst-Devel/1.00/trunk:10253
4ad37cd2-5fec-0310-835f-b3785c72a374:/trunk/Catalyst-Devel:6899
4ad37cd2-5fec-0310-835f-b3785c72a374:/trunk/Catalyst-Helper:4258
6d45476b-5895-46b8-b13a-8b969fa34c98:/local/Catalyst-Devel-helper-refactor:11315
+ 4ad37cd2-5fec-0310-835f-b3785c72a374:/Catalyst-Devel/1.00/trunk:10253
4ad37cd2-5fec-0310-835f-b3785c72a374:/trunk/Catalyst-Devel:6899
4ad37cd2-5fec-0310-835f-b3785c72a374:/trunk/Catalyst-Helper:4258
6d45476b-5895-46b8-b13a-8b969fa34c98:/local/Catalyst-Devel-helper-refactor:11316
Modified: Catalyst-Devel/1.00/branches/helper_refactor/share/Makefile.PL.tt
===================================================================
--- Catalyst-Devel/1.00/branches/helper_refactor/share/Makefile.PL.tt 2009-09-05 15:15:31 UTC (rev 11308)
+++ Catalyst-Devel/1.00/branches/helper_refactor/share/Makefile.PL.tt 2009-09-05 15:15:37 UTC (rev 11309)
@@ -10,7 +10,8 @@
requires 'Catalyst::Plugin::ConfigLoader';
requires 'Catalyst::Plugin::Static::Simple';
requires 'Catalyst::Action::RenderView';
-requires 'parent';
+requires 'Moose';
+requires 'namespace::autoclean';
requires 'Config::General'; # This should reflect the config file format you've chosen
# See Catalyst::Plugin::ConfigLoader for supported formats
catalyst;
Modified: Catalyst-Devel/1.00/branches/helper_refactor/share/lib/MyApp/Controller/Root.pm.tt
===================================================================
--- Catalyst-Devel/1.00/branches/helper_refactor/share/lib/MyApp/Controller/Root.pm.tt 2009-09-05 15:15:31 UTC (rev 11308)
+++ Catalyst-Devel/1.00/branches/helper_refactor/share/lib/MyApp/Controller/Root.pm.tt 2009-09-05 15:15:37 UTC (rev 11309)
@@ -1,8 +1,8 @@
package [% rootname %];
+use Moose;
+use namespace::autoclean;
-use strict;
-use warnings;
-use parent 'Catalyst::Controller';
+BEGIN { extends 'Catalyst::Controller' }
#
# Sets the actions in this controller to be registered with no prefix
@@ -58,4 +58,4 @@
=cut
-1;
+__PACKAGE__->meta->make_immutable;
Modified: Catalyst-Devel/1.00/branches/helper_refactor/share/lib/MyApp.pm.tt
===================================================================
--- Catalyst-Devel/1.00/branches/helper_refactor/share/lib/MyApp.pm.tt 2009-09-05 15:15:31 UTC (rev 11308)
+++ Catalyst-Devel/1.00/branches/helper_refactor/share/lib/MyApp.pm.tt 2009-09-05 15:15:37 UTC (rev 11309)
@@ -1,8 +1,7 @@
package [% name %];
+use Moose;
+use namespace::autoclean;
-use strict;
-use warnings;
-
use Catalyst::Runtime 5.80;
# Set flags and add plugins for the application
@@ -13,10 +12,12 @@
# Static::Simple: will serve static files from the application's root
# directory
-use parent qw/Catalyst/;
use Catalyst qw/-Debug
ConfigLoader
Static::Simple/;
+
+extends 'Catalyst';
+
our $VERSION = '0.01';
# Configure the application.
More information about the Catalyst-commits
mailing list