added C/M/V legacy shortcuts
[catagits/Catalyst-Plugin-ConfigLoader.git] / lib / Catalyst / Plugin / ConfigLoader.pm
index 1788080..78a4af3 100644 (file)
@@ -73,18 +73,6 @@ sub setup {
 \r
             _fix_syntax( $config );\r
             \r
-            # merge hashes 1 level down\r
-            for my $key ( keys %$config ) {\r
-                if( exists $c->config->{ $key } ) {\r
-                    my $isa_ref = ref $config->{ $key };\r
-\r
-                    next if !$isa_ref or $isa_ref ne 'HASH';\r
-\r
-                    my %temp = ( %{ $c->config->{ $key } }, %{ $config->{ $key } } );\r
-                    $config->{ $key } = \%temp;\r
-                }\r
-            }\r
-            \r
             $c->config( $config );\r
         }\r
     }\r
@@ -172,7 +160,7 @@ sub _fix_syntax {
         grep {\r
             ref $config->{ lc $_ } || ref $config->{ $_ }\r
         }\r
-        qw( Component Model View Controller )\r
+        qw( Component Model M View V Controller C )\r
     );\r
 \r
     foreach my $comp ( @components ) {\r