X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType.pm;h=6ac653d4d12307427e54d64763ce3fa7f235b24d;hb=b354201608d428db344c63dd35de096a62a7a9d3;hp=ce16150eb5577a6d5f10de5146748ec9551ce849;hpb=f9bcc1280f6685f1d937688ed9c035bc9994a01e;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/DispatchType.pm b/lib/Catalyst/DispatchType.pm index ce16150..6ac653d 100644 --- a/lib/Catalyst/DispatchType.pm +++ b/lib/Catalyst/DispatchType.pm @@ -1,7 +1,8 @@ package Catalyst::DispatchType; -use strict; -use base 'Class::Accessor::Fast'; +use Moose; +with 'MooseX::Emulate::Class::Accessor::Fast'; +no Moose; =head1 NAME @@ -46,15 +47,6 @@ Should return true if it registers something, or false otherwise. sub register { } -=head2 $self->expand_action - -Default fallback, returns nothing. See L for more info -about expand_action. - -=cut - -sub expand_action { } - =head2 $self->uri_for_action( $action, \@captures ) abstract method, to be implemented by dispatchtypes. Takes a @@ -67,6 +59,15 @@ arrayref, or undef if unable to do so. sub uri_for_action { } +=head2 $self->expand_action + +Default fallback, returns nothing. See L for more info +about expand_action. + +=cut + +sub expand_action { } + =head1 AUTHORS Catalyst Contributors, see Catalyst.pm @@ -78,4 +79,6 @@ the same terms as Perl itself. =cut +__PACKAGE__->meta->make_immutable; + 1;