Remove dependency on parent.pm and remove from generated component classes
[catagits/Catalyst-Devel.git] / share / lib / Helper / compclass.pm.tt
index 3b0da27..774e1cd 100644 (file)
@@ -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 @@ it under the same terms as Perl itself.
 
 =cut
 
-1;
+__PACKAGE__->meta->make_immutable;
+