X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAttrContainer.pm;h=443b4162098a2679b86509ee759242d59f214b19;hb=b354201608d428db344c63dd35de096a62a7a9d3;hp=6ae22679b9ad29f4c7d850a147bc9131f5031ab7;hpb=0f9a2693699d08bd7af2b1ac8b5a466064381e03;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/AttrContainer.pm b/lib/Catalyst/AttrContainer.pm index 6ae2267..443b416 100644 --- a/lib/Catalyst/AttrContainer.pm +++ b/lib/Catalyst/AttrContainer.pm @@ -1,14 +1,13 @@ package Catalyst::AttrContainer; -use strict; -use base qw/Class::Accessor::Fast Class::Data::Inheritable/; - +use Moose; use Catalyst::Exception; -use NEXT; +with 'Catalyst::ClassData'; + +no Moose; -__PACKAGE__->mk_classdata($_) for qw/_attr_cache _action_cache/; -__PACKAGE__->_attr_cache( {} ); -__PACKAGE__->_action_cache( [] ); +__PACKAGE__->mk_classdata(_attr_cache => {} ); +__PACKAGE__->mk_classdata( _action_cache => [] ); # note - see attributes(3pm) sub MODIFY_CODE_ATTRIBUTES { @@ -23,14 +22,14 @@ sub FETCH_CODE_ATTRIBUTES { $_[0]->_attr_cache->{ $_[1] } || () } =head1 NAME -Catalyst::AttrContainer +Catalyst::AttrContainer - Handles code attribute storage and caching =head1 SYNOPSIS =head1 DESCRIPTION This class sets up the code attribute cache. It's a base class for -L +L. =head1 METHODS @@ -44,12 +43,12 @@ Attribute function. See attributes(3pm) =head1 SEE ALSO +L L. -=head1 AUTHOR +=head1 AUTHORS -Sebastian Riedel, C -Marcus Ramberg, C +Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT