X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FAction.pm;h=1a23b16b7f978f3ccecab9dda06d5ea7985f9943;hp=640a2099165dba9e8278bb10af292430d52b8b6c;hb=2055d9ad6304f9db74cb05ec8ee0146ce319e8e4;hpb=0fc2d522eec43202c21e9f0062e43f10db4d9008 diff --git a/lib/Catalyst/Action.pm b/lib/Catalyst/Action.pm index 640a209..1a23b16 100644 --- a/lib/Catalyst/Action.pm +++ b/lib/Catalyst/Action.pm @@ -17,7 +17,6 @@ L subclasses. =cut -use Class::C3; use Moose; has class => (is => 'rw'); @@ -29,14 +28,10 @@ has code => (is => 'rw'); no Moose; -no warnings 'recursion'; - -#__PACKAGE__->mk_accessors(qw/class namespace reverse attributes name code/); - use overload ( # Stringify to reverse for debug output etc. - q{""} => sub { shift->reverse() }, + q{""} => sub { shift->{reverse} }, # Codulate to execute to invoke the encapsulated action coderef '&{}' => sub { my $self = shift; sub { $self->execute(@_); }; }, @@ -46,6 +41,12 @@ use overload ( ); + + +no warnings 'recursion'; + +#__PACKAGE__->mk_accessors(qw/class namespace reverse attributes name code/); + sub dispatch { # Execute ourselves against a context my ( $self, $c ) = @_; #Moose todo: grrrrrr. this is no good. i don't know enough about it to