X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=faa7ae8537524946f8a9bb44d9b80bad65811aa7;hb=fbedfd6b5429958bd65800beef2951db97ea50f2;hp=4fd4da2e793981ee5b0dfe75ae0388239c2c9233;hpb=8a27f8606cae3ecb2c064accf2ce0f1138a5ab7b;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 4fd4da2..faa7ae8 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -59,6 +59,7 @@ our $COUNT = 1; our $START = time; our $RECURSION = 1000; our $DETACH = "catalyst_detach\n"; +our $GO = "catalyst_go\n"; #I imagine that very few of these really need to be class variables. if any. #maybe we should just make them attributes with a default? @@ -1035,6 +1036,8 @@ using C<< $c->req->captures >>. # For the Foo action in the Bar controller $c->uri_for($c->controller->('Bar')->action_for('Foo'), $c->req->captures); +=back + =cut sub uri_for { @@ -1335,6 +1338,9 @@ sub execute { if ( !ref($error) and $error eq $DETACH ) { die $DETACH if($c->depth > 1); } + elsif ( !ref($error) and $error eq $GO ) { + die $GO if($c->depth > 0); + } else { unless ( ref $error ) { no warnings 'uninitialized'; @@ -2132,9 +2138,6 @@ sub setup_engine { } Class::MOP::load_class($engine); - #unless (Class::Inspector->loaded($engine)) { - # require Class::Inspector->filename($engine); - #} # check for old engines that are no longer compatible my $old_engine;