X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType.pm;h=0cde6519a2f5065912ca85702ae6541c82592f41;hp=6ac653d4d12307427e54d64763ce3fa7f235b24d;hb=b007fcc611c8584b634e27a60ebfe5b6f518601a;hpb=ae29b412955743885e80350085167b54b69672da diff --git a/lib/Catalyst/DispatchType.pm b/lib/Catalyst/DispatchType.pm index 6ac653d..0cde651 100644 --- a/lib/Catalyst/DispatchType.pm +++ b/lib/Catalyst/DispatchType.pm @@ -14,7 +14,12 @@ See L. =head1 DESCRIPTION -This is an abstract base class for Dispatch Types. +This is an abstract base class for Dispatch Types. + +From a code perspective, dispatch types are used to find which actions +to call for a given request URL. Website authors will typically work +with them via subroutine names attributes; a description of dispatch +at the attribute/URL level is given in L. =head1 METHODS @@ -39,7 +44,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 object. +context object and a L object. Should return true if it registers something, or false otherwise. @@ -68,13 +73,15 @@ about expand_action. sub expand_action { } +sub _is_low_precedence { 0 } + =head1 AUTHORS Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT -This program is free software, you can redistribute it and/or modify it under +This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. =cut