[Catalyst-commits] r12038 - in
Catalyst-Devel/1.00/branches/helper_refactor: . share/lib/Helper
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Thu Nov 26 22:58:09 GMT 2009
Author: t0m
Date: 2009-11-26 22:58:09 +0000 (Thu, 26 Nov 2009)
New Revision: 12038
Modified:
Catalyst-Devel/1.00/branches/helper_refactor/Makefile.PL
Catalyst-Devel/1.00/branches/helper_refactor/share/lib/Helper/compclass.pm.tt
Log:
Remove dependency on parent.pm and remove from generated component classes
Modified: Catalyst-Devel/1.00/branches/helper_refactor/Makefile.PL
===================================================================
--- Catalyst-Devel/1.00/branches/helper_refactor/Makefile.PL 2009-11-26 22:52:46 UTC (rev 12037)
+++ Catalyst-Devel/1.00/branches/helper_refactor/Makefile.PL 2009-11-26 22:58:09 UTC (rev 12038)
@@ -14,7 +14,6 @@
requires 'File::ChangeNotify' => '0.07';
requires 'File::Copy::Recursive';
requires 'Module::Install' => '0.91';
-requires 'parent'; # as of 1.04
requires 'Path::Class' => '0.09';
requires 'Template' => '2.14';
Modified: Catalyst-Devel/1.00/branches/helper_refactor/share/lib/Helper/compclass.pm.tt
===================================================================
--- Catalyst-Devel/1.00/branches/helper_refactor/share/lib/Helper/compclass.pm.tt 2009-11-26 22:52:46 UTC (rev 12037)
+++ Catalyst-Devel/1.00/branches/helper_refactor/share/lib/Helper/compclass.pm.tt 2009-11-26 22:58:09 UTC (rev 12038)
@@ -1,8 +1,8 @@
package [% class %];
+use Moose;
+use namespace::autoclean;
-use strict;
-use warnings;
-use parent 'Catalyst::[% long_type %]';
+[% IF long_type == 'Controller' %]BEGIN {[% END %]extends 'Catalyst::[% long_type %]';[% IF long_type == 'Controller' %] }[% END %]
=head1 NAME
@@ -39,4 +39,5 @@
=cut
-1;
+__PACKAGE__->meta->make_immutable;
+
More information about the Catalyst-commits
mailing list