From: Tomas Doran Date: Wed, 18 Feb 2009 22:58:55 +0000 (+0000) Subject: First crack at deprecating ::[MVC]:: style names. No tests yet, tough poo. X-Git-Tag: 5.80001~90 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=73e1183e700550e8605273d6e38cfe4fd26bb718 First crack at deprecating ::[MVC]:: style names. No tests yet, tough poo. --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 39a9c32..847b678 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -2047,7 +2047,12 @@ sub setup_components { 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.)