X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatcher.pm;h=72a8ef313721109c7603e9a27f412333128038e7;hp=3ff54ba371ebb2bcf9e6eadc3c54bb6dc57bd8bd;hb=6ef62eb24297bfe15e444eaa2ba624fde4569e78;hpb=1b2b8bdfa9e663a01bf0470180b355b4d5633b83 diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index 3ff54ba..72a8ef3 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -23,6 +23,18 @@ See L. =over 4 +=item $c->detach($command) + +Like C but doesn't return. + +=cut + +sub detach { + my ( $c, $command ) = @_; + $c->forward($command) if $command; + die $Catalyst::Engine::DETACH; +} + =item $c->dispatch Dispatch request to actions.