mro compat stuff
[catagits/Catalyst-Runtime.git] / lib / Catalyst / DispatchType.pm
index 99ce561..874963a 100644 (file)
@@ -1,6 +1,9 @@
 package Catalyst::DispatchType;
 
-use Moose;
+use MRO::Compat;
+use mro 'c3';
+use Moose; # using it to add Moose::Object to @ISA ...
+no Moose;
 
 =head1 NAME
 
@@ -12,7 +15,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 +40,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 +72,6 @@ the same terms as Perl itself.
 
 =cut
 
+__PACKAGE__->meta->make_immutable;
+
 1;