From: Karen Etheridge Date: Tue, 13 Aug 2013 23:59:18 +0000 (-0700) Subject: instead of using MI, compose a role which brings in the same Inheritable behaviour X-Git-Tag: 5.90050~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=a0c37f08167f203244fbc479f2a7a3629797f447 instead of using MI, compose a role which brings in the same Inheritable behaviour --- diff --git a/Makefile.PL b/Makefile.PL index fd8412a..230b079 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -34,7 +34,7 @@ requires 'Class::Load' => '0.12'; requires 'Class::MOP' => '0.95'; requires 'Data::OptList'; requires 'Moose' => '1.03'; -requires 'MooseX::MethodAttributes::Inheritable' => '0.24'; +requires 'MooseX::MethodAttributes::Role::AttrContainer::Inheritable' => '0.24'; requires 'MooseX::Role::WithOverloading' => '0.09'; requires 'Carp'; requires 'Class::C3::Adopt::NEXT' => '0.07'; diff --git a/lib/Catalyst/Controller.pm b/lib/Catalyst/Controller.pm index 99c2893..10f290b 100644 --- a/lib/Catalyst/Controller.pm +++ b/lib/Catalyst/Controller.pm @@ -9,7 +9,10 @@ use List::Util qw/first/; use List::MoreUtils qw/uniq/; use namespace::clean -except => 'meta'; -BEGIN { extends qw/Catalyst::Component MooseX::MethodAttributes::Inheritable/; } +BEGIN { + extends qw/Catalyst::Component/; + with qw/MooseX::MethodAttributes::Role::AttrContainer::Inheritable/; +} use MooseX::MethodAttributes; use Catalyst::Exception; diff --git a/lib/Catalyst/Delta.pod b/lib/Catalyst/Delta.pod index 81cd319..8b5caf2 100755 --- a/lib/Catalyst/Delta.pod +++ b/lib/Catalyst/Delta.pod @@ -167,7 +167,7 @@ classes are better implemented as Moose roles. =item * -L is used to contain action +L is used to contain action attributes. This means that attributes are represented in the MOP, and decouples action creation from attributes.