1 package TestAppCustomContainer::Controller::Root;
3 BEGIN { extends 'Catalyst::Controller' }
5 __PACKAGE__->config(namespace => '');
7 sub container_class :Local {
9 $c->res->body($c->config->{container_class});
12 sub container_isa :Local {
14 $c->res->body(ref $c->container);
17 sub get_model_bar :Local {
19 $c->res->body(ref $c->model('Bar'));
22 sub get_model_baz :Local {
24 $c->res->body(ref $c->model('Baz'));
27 sub get_model_foo :Local {
29 $c->res->body(ref $c->model('DefaultSetup'));
32 __PACKAGE__->meta->make_immutable;