X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestAppCustomContainer%2FNoSugarContainer.pm;h=9027592912d7e8497643970a1b52fe0a09e08a9a;hb=072b618d95788494189bbe1d53549a9c18b187a2;hp=79ef2baa0c0c6553b18470bbe81f902c975b7496;hpb=576d8ab82ede7893d118679e0df1e7675e53c446;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestAppCustomContainer/NoSugarContainer.pm b/t/lib/TestAppCustomContainer/NoSugarContainer.pm index 79ef2ba..9027592 100644 --- a/t/lib/TestAppCustomContainer/NoSugarContainer.pm +++ b/t/lib/TestAppCustomContainer/NoSugarContainer.pm @@ -17,7 +17,6 @@ sub BUILD { catalyst_component_name => 'TestAppCustomContainer::Model::SingletonLifeCycle', dependencies => { application_name => depends_on( '/application_name' ), - foo => depends_on('/model/DefaultSetup'), }, ) ); @@ -31,11 +30,25 @@ sub BUILD { catalyst_component_name => 'TestAppCustomContainer::Model::RequestLifeCycle', dependencies => { application_name => depends_on( '/application_name' ), - foo => depends_on('/model/DefaultSetup'), }, ) ); +# 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' ), +# # FIXME - this is what is blowing up everything: +# # DefaultSetup needs the context. It's not getting it here! +# foo => depends_on('/model/DefaultSetup'), +# }, +# ) +# ); + # Broken deps!?! # $self->get_sub_container('model')->add_service( # Catalyst::IOC::BlockInjection->new(