package Catalyst::AttrContainer;
use Moose;
-#use strict;
-#use base qw/Class::Accessor::Fast Class::Data::Inheritable/;
-
use Catalyst::Exception;
-use NEXT;
+with 'Catalyst::ClassData';
-#dont want to ISA a C::D::I
-use Class::Data::Inheritable;
-{
- my $mk_classdata = Class::Data::Inheritable->can('mk_classdata');
- __PACKAGE__->meta->add_method(mk_classdata => $mk_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 {
=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
+This class sets up the code attribute cache. It's a base class for
L<Catalyst::Controller>.
=head1 METHODS
L<Catalyst::Dispatcher>
L<Catalyst>.
-=head1 AUTHOR
+=head1 AUTHORS
-Sebastian Riedel, C<sri@cpan.org>
-Marcus Ramberg, C<mramberg@cpan.org>
+Catalyst Contributors, see Catalyst.pm
=head1 COPYRIGHT