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=196d3fd4cb7cdb26fdb3fed82bbe1a4191662503;hp=98ac0ebd91a5ac56dca9a2d5f8cae2de34fc22e3;hb=4ab87e274ac0a05f98c10a4cdba467ba4398b0d3;hpb=1627551a60fe1e220d390a565f793dea27cd36a6 diff --git a/lib/Catalyst/DispatchType.pm b/lib/Catalyst/DispatchType.pm index 98ac0eb..196d3fd 100644 --- a/lib/Catalyst/DispatchType.pm +++ b/lib/Catalyst/DispatchType.pm @@ -17,18 +17,29 @@ See L. =head2 $self->list($c) +abstract method, to be implemented by dispatchtypes. Called to display +info in debug log. + =cut sub list { } =head2 $self->match( $c, $path ) +abstract method, to be implemented by dispatchtypes. Returns true if the +dispatch type matches the given path + =cut 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. + +Should return true if it registers something, or false otherwise. + =cut sub register { }