From: Zbigniew Łukasiak Date: Sat, 21 Nov 2009 13:03:43 +0000 (+0000) Subject: warning for plugins inheriting from Catayst::Component X-Git-Tag: 5.80014_01~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=d72549368e002e56727fbe74ad0a13d6dff6ce6c warning for plugins inheriting from Catayst::Component --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 6a73f09..6f4ce37 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -2587,7 +2587,7 @@ the plugin name does not begin with C. my $class = ref $proto || $proto; Class::MOP::load_class( $plugin ); - + $class->log->warn( "$plugin inherits from 'Catalyst::Component' - this kind of plugins are deprecated and will not work in 5.81" ) if $plugin->isa( 'Catalyst::Component' ); $proto->_plugins->{$plugin} = 1; unless ($instant) { no strict 'refs';