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

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Wed Feb 18 22:58:55 GMT 2009


Author: t0m
Date: 2009-02-18 22:58:55 +0000 (Wed, 18 Feb 2009)
New Revision: 9334

Modified:
   Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
Log:
First crack at deprecating ::[MVC]:: style names. No tests yet, tough poo.

Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2009-02-18 22:58:50 UTC (rev 9333)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2009-02-18 22:58:55 UTC (rev 9334)
@@ -2047,7 +2047,12 @@
 
     my @comps = sort { length $a <=> length $b } $locator->plugins;
     my %comps = map { $_ => 1 } @comps;
-    
+
+    my $deprecated_component_names = grep { /::[CMV]::/ } @comps;
+    $class->log->warn(qq{Your application is using the deprecated ::[MVC]:: type naming scheme.\n}.
+        qq{Please switch your class names to ::Model::, ::View:: and ::Controller: as appropriate.\n}
+    );
+
     for my $component ( @comps ) {
 
         # We pass ignore_loaded here so that overlay files for (e.g.)




More information about the Catalyst-commits mailing list