X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FActionChain.pm;h=692065a99aa76bd21b238810f1b0ab56014a5c01;hp=e0182809bf116dfbbd811d4c5290cdfa0218c549;hb=6f1f968a6bc42bf4a4b50a1ee22d3aaecd801876;hpb=e5ecd5bc38bac3e2fcfaf643ea2a4c6ab46d7e57 diff --git a/lib/Catalyst/ActionChain.pm b/lib/Catalyst/ActionChain.pm index e018280..692065a 100644 --- a/lib/Catalyst/ActionChain.pm +++ b/lib/Catalyst/ActionChain.pm @@ -1,10 +1,14 @@ package Catalyst::ActionChain; +use MRO::Compat; +use mro 'c3'; use Moose; extends qw(Catalyst::Action); has chain => (is => 'rw'); +no Moose; + =head1 NAME Catalyst::ActionChain - Chain of Catalyst Actions @@ -21,20 +25,6 @@ the actions in the chain in order. =cut -use overload ( - - # Stringify to reverse for debug output etc. - q{""} => sub { shift->{reverse} }, - - # Codulate to execute to invoke the encapsulated action coderef - '&{}' => sub { my $self = shift; sub { $self->execute(@_); }; }, - - # Make general $stuff still work - fallback => 1, - -); - - sub dispatch { my ( $self, $c ) = @_; my @captures = @{$c->req->captures||[]};