From: Tomas Doran Date: Mon, 6 Feb 2012 22:21:57 +0000 (+0000) Subject: I don't think pushing to config is actually needed X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=38957dfeb8be485af571af1cd74e8a4a1fa789e4 I don't think pushing to config is actually needed --- diff --git a/lib/Catalyst/IOC/Container.pm b/lib/Catalyst/IOC/Container.pm index 66ce83d..2cbc1cb 100644 --- a/lib/Catalyst/IOC/Container.pm +++ b/lib/Catalyst/IOC/Container.pm @@ -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') ], diff --git a/t/aggregate/unit_core_container_applevel_config.t b/t/aggregate/unit_core_container_applevel_config.t index 9ec08a4..eb3c984 100644 --- a/t/aggregate/unit_core_container_applevel_config.t +++ b/t/aggregate/unit_core_container_applevel_config.t @@ -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;