X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestAppCustomContainer%2FNoSugarContainer.pm;h=f4ad4d648a325d2d99576a569a530f8301051a2f;hb=gsoc_breadboard_with_app_instance;hp=9027592912d7e8497643970a1b52fe0a09e08a9a;hpb=072b618d95788494189bbe1d53549a9c18b187a2;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestAppCustomContainer/NoSugarContainer.pm b/t/lib/TestAppCustomContainer/NoSugarContainer.pm index 9027592..f4ad4d6 100644 --- a/t/lib/TestAppCustomContainer/NoSugarContainer.pm +++ b/t/lib/TestAppCustomContainer/NoSugarContainer.pm @@ -8,7 +8,6 @@ extends 'Catalyst::IOC::Container'; sub BUILD { my $self = shift; - warn("Add SingletonLifeCycle to model"); $self->get_sub_container('model')->add_service( Catalyst::IOC::ConstructorInjection->new( name => 'SingletonLifeCycle', @@ -16,12 +15,11 @@ sub BUILD { class => 'TestAppCustomContainer::Model::SingletonLifeCycle', catalyst_component_name => 'TestAppCustomContainer::Model::SingletonLifeCycle', dependencies => { - application_name => depends_on( '/application_name' ), + application => depends_on( '/application' ), }, ) ); - warn("Add RequestLifeCycle to model"); $self->get_sub_container('model')->add_service( Catalyst::IOC::ConstructorInjection->new( name => 'RequestLifeCycle', @@ -29,19 +27,18 @@ sub BUILD { class => 'TestAppCustomContainer::Model::RequestLifeCycle', catalyst_component_name => 'TestAppCustomContainer::Model::RequestLifeCycle', dependencies => { - application_name => depends_on( '/application_name' ), + application => depends_on( '/application' ), }, ) ); -# warn("Add DependsOnDefaultSetup to model"); # $self->get_sub_container('model')->add_service( # Catalyst::IOC::ConstructorInjection->new( # name => 'DependsOnDefaultSetup', # class => 'TestAppCustomContainer::Model::DependsOnDefaultSetup', # catalyst_component_name => 'TestAppCustomContainer::Model::DependsOnDefaultSetup', # dependencies => { -# application_name => depends_on( '/application_name' ), +# application => depends_on( '/application' ), # # FIXME - this is what is blowing up everything: # # DefaultSetup needs the context. It's not getting it here! # foo => depends_on('/model/DefaultSetup'), @@ -68,7 +65,7 @@ sub BUILD { # lifecycle => 'Singleton', # class => 'TestAppCustomContainer::External::Class', # dependencies => [ -# depends_on( '/application_name' ), +# depends_on( '/application' ), # ], # config => $fnar_config, # )