Updated Catalyst::Request and Catalyst::Response to have sensible defaults for attributes
[catagits/Catalyst-Runtime.git] / lib / Catalyst / DispatchType.pm
index 99ce561..99da4c6 100644 (file)
@@ -1,6 +1,8 @@
 package Catalyst::DispatchType;
 
 use Moose;
+#use strict;
+#use base 'Class::Accessor::Fast';
 
 =head1 NAME
 
@@ -12,7 +14,7 @@ See L<Catalyst>.
 
 =head1 DESCRIPTION
 
-This is an abstract base class for Dispatch Types.
+This is an abstract base class for Dispatch Types. 
 
 =head1 METHODS
 
@@ -37,7 +39,7 @@ sub match { die "Abstract method!" }
 =head2 $self->register( $c, $action )
 
 abstract method, to be implemented by dispatchtypes. Takes a
-context object and a L<Catalyst::Action> object.
+context object and a L<Catalyst::Action> object. 
 
 Should return true if it registers something, or false otherwise.
 
@@ -69,4 +71,7 @@ the same terms as Perl itself.
 
 =cut
 
+no Moose;
+__PACKAGE__->meta->make_immutable;
+
 1;