[Catalyst-commits] r11961 - Catalyst-Runtime/5.80/trunk/lib

zby at dev.catalyst.perl.org zby at dev.catalyst.perl.org
Sat Nov 21 13:03:44 GMT 2009


Author: zby
Date: 2009-11-21 13:03:43 +0000 (Sat, 21 Nov 2009)
New Revision: 11961

Modified:
   Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
Log:
warning for plugins inheriting from Catayst::Component

Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2009-11-21 06:43:57 UTC (rev 11960)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2009-11-21 13:03:43 UTC (rev 11961)
@@ -2587,7 +2587,7 @@
         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';




More information about the Catalyst-commits mailing list