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=3c0b49b974e14b71cf4f39179bcf7afbcc35698e;hp=2fd63d93d46008929cd687c5b08993d9eaa4447c;hb=0fc2d522eec43202c21e9f0062e43f10db4d9008;hpb=b2ddf6d7e1ea8f9b281ce5da27ecadf3152e151d diff --git a/lib/Catalyst/ActionChain.pm b/lib/Catalyst/ActionChain.pm index 2fd63d9..3c0b49b 100644 --- a/lib/Catalyst/ActionChain.pm +++ b/lib/Catalyst/ActionChain.pm @@ -1,8 +1,12 @@ package Catalyst::ActionChain; -use strict; -use base qw/Catalyst::Action/; +use Class::C3; +use Moose; +extends qw(Catalyst::Action); +has chain => (is => 'rw'); + +no Moose; =head1 NAME @@ -20,8 +24,6 @@ the actions in the chain in order. =cut -__PACKAGE__->mk_accessors(qw/chain/); - use overload ( # Stringify to reverse for debug output etc. @@ -58,6 +60,7 @@ sub from_chain { return $self->new({ %$final, chain => $actions }); } +__PACKAGE__->meta->make_immutable; 1; __END__ @@ -79,7 +82,9 @@ actions in order. Takes a list of Catalyst::Action objects and constructs and returns a Catalyst::ActionChain object representing a chain of these actions -=cut +=head2 meta + +Provided by Moose =head1 AUTHOR