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=450c88e05ac89f7613582e2b1f435a5c7d014dc5;hp=819b8943673418b4d73d7ebb45d099f402386262;hb=f3414019f472b55682ef3af53f761b6db7955887;hpb=6680c772eaa987eafdb32e9437fd2d649dc914d9 diff --git a/lib/Catalyst/ActionChain.pm b/lib/Catalyst/ActionChain.pm index 819b894..450c88e 100644 --- a/lib/Catalyst/ActionChain.pm +++ b/lib/Catalyst/ActionChain.pm @@ -1,10 +1,13 @@ package Catalyst::ActionChain; +use Class::C3; use Moose; extends qw(Catalyst::Action); has chain => (is => 'rw'); +no Moose; + =head1 NAME Catalyst::ActionChain - Chain of Catalyst Actions @@ -21,20 +24,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||[]}; @@ -57,7 +46,6 @@ sub from_chain { return $self->new({ %$final, chain => $actions }); } -no Moose; __PACKAGE__->meta->make_immutable; 1;