I don't think pushing to config is actually needed
Tomas Doran [Mon, 6 Feb 2012 22:21:57 +0000 (22:21 +0000)]
lib/Catalyst/IOC/Container.pm
t/aggregate/unit_core_container_applevel_config.t

index 66ce83d..2cbc1cb 100644 (file)
@@ -167,7 +167,7 @@ sub build_home_service {
             }
 
             $home ||= Catalyst::Utils::home($class);
-            $class->config(home => $home); # FIXME - Needed to make path_to work.
+#            $class->config(home => $home); # FIXME - Needed to make path_to work.
             return $home;
         },
         dependencies => [ depends_on('application_name') ],
index 9ec08a4..eb3c984 100644 (file)
@@ -16,4 +16,10 @@ $applevel_config = TestAppContainer->config->{applevel_config};
 ok($applevel_config, 'applevel_config exists in the config accessor');
 is($applevel_config, 'foo', 'and has the correct value');
 
+my $home = TestAppContainer->container->resolve(service => 'config')->{home};
+ok( $home );
+
+$home = TestAppContainer->config->{home};
+ok( $home );
+
 done_testing;