X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAttrContainer.pm;h=6ae22679b9ad29f4c7d850a147bc9131f5031ab7;hb=d4f67841aca20946ee3e6e32609a22d633d961e9;hp=b330adcf6fc4207bd636ecb917ab056a49e34d8c;hpb=97e14a039625db1575f964bce8b6a74cd22d84d2;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/AttrContainer.pm b/lib/Catalyst/AttrContainer.pm index b330adc..6ae2267 100644 --- a/lib/Catalyst/AttrContainer.pm +++ b/lib/Catalyst/AttrContainer.pm @@ -1,7 +1,7 @@ package Catalyst::AttrContainer; use strict; -use base qw/Class::Data::Inheritable Class::Accessor::Fast/; +use base qw/Class::Accessor::Fast Class::Data::Inheritable/; use Catalyst::Exception; use NEXT; @@ -13,7 +13,6 @@ __PACKAGE__->_action_cache( [] ); # note - see attributes(3pm) sub MODIFY_CODE_ATTRIBUTES { my ( $class, $code, @attrs ) = @_; - return if ( ( $attrs[0] eq 'lvalue' ) && ( @attrs == 1 ) ); $class->_attr_cache( { %{ $class->_attr_cache }, $code => [@attrs] } ); $class->_action_cache( [ @{ $class->_action_cache }, [ $code, [@attrs] ] ] ); @@ -30,15 +29,18 @@ Catalyst::AttrContainer =head1 DESCRIPTION +This class sets up the code attribute cache. It's a base class for +L + =head1 METHODS -=over 4 +=head2 FETCH_CODE_ATTRIBUTES -=item FETCH_CODE_ATTRIBUTES +Attribute function. See attributes(3pm) -=item MODIFY_CODE_ATTRIBUTES +=head2 MODIFY_CODE_ATTRIBUTES -=back +Attribute function. See attributes(3pm) =head1 SEE ALSO