X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FComponent.pm;h=1301fc850b8f5241cc6c1a970747e10ab1d29df2;hb=8be895a7aa1d89a8004cc0cd37962025bc5c3b3d;hp=36b05236f47514b294e258be5d7352d6df328b5d;hpb=74c89dead3cfd8e95cbe853adbc6fe9eed539f4e;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Component.pm b/lib/Catalyst/Component.pm index 36b0523..1301fc8 100644 --- a/lib/Catalyst/Component.pm +++ b/lib/Catalyst/Component.pm @@ -3,7 +3,6 @@ package Catalyst::Component; use Moose; use Class::MOP; use Class::MOP::Object; -use MooseX::Adopt::Class::Accessor::Fast; use Catalyst::Utils; use Class::C3::Adopt::NEXT; use MRO::Compat; @@ -78,8 +77,10 @@ sub COMPONENT { if( my $next = $self->next::can ){ my $class = blessed $self || $self; my ($next_package) = Class::MOP::get_code_info($next); - warn "There is a COMPONENT method resolving after Catalyst::Component in ${next_package}. This behavior is deprecated and will stop working in future releases."; - return $next->($self, $arguments); + warn "There is a COMPONENT method resolving after Catalyst::Component in ${next_package}.\n"; + warn "This behavior can no longer be supported, and so your application is probably broken.\n"; + warn "Your linearised isa hierarchy is: " . join(', ', mro::get_linear_isa($class)) . "\n"; + warn "Please see perldoc Catalyst::Upgrading for more information about this issue.\n"; } return $self->new($c, $arguments); }