catalyst_component_name doesn't have to be a class accessor anymore
[catagits/Catalyst-Runtime.git] / lib / Catalyst / IOC / Container.pm
index 74f0d7e..a9b5dc3 100644 (file)
@@ -649,11 +649,11 @@ sub add_component {
     $instance_container->add_service(
         Catalyst::IOC::ConstructorInjection->new(
             name      => $component_service_name,
+            catalyst_component_name => $component,
             class     => $component,
             lifecycle => 'Singleton',
             dependencies => [
                 depends_on( '/application_name' ),
-                depends_on( '/config' ),
             ],
         )
     ) unless $instance_container->has_service( $component_service_name );