package TestAppCustomContainer::Model::RequestLifeCycle;
use Moose;
extends 'Catalyst::Model';
-with 'TestAppCustomContainer::Role::HoldsFoo',
- 'TestAppCustomContainer::Role::ACCEPT_CONTEXT';
+with 'TestAppCustomContainer::Role::ACCEPT_CONTEXT';
__PACKAGE__->meta->make_immutable;
package TestAppCustomContainer::Model::SingletonLifeCycle;
use Moose;
extends 'Catalyst::Model';
-with 'TestAppCustomContainer::Role::HoldsFoo',
- 'TestAppCustomContainer::Role::FailIfACCEPT_CONTEXTCalled';
+with 'TestAppCustomContainer::Role::FailIfACCEPT_CONTEXTCalled';
__PACKAGE__->meta->make_immutable;
catalyst_component_name => 'TestAppCustomContainer::Model::SingletonLifeCycle',
dependencies => {
application_name => depends_on( '/application_name' ),
- foo => depends_on('/model/DefaultSetup'),
},
)
);
catalyst_component_name => 'TestAppCustomContainer::Model::RequestLifeCycle',
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'),
},
)
);
+# 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(