36ce7ed6251ac9cfb4650fb395724b1088194c6d
[catagits/Catalyst-Runtime.git] / t / lib / TestAppCustomContainer / Controller / Root.pm
1 package TestAppCustomContainer::Controller::Root;
2 use Moose;
3 BEGIN { extends 'Catalyst::Controller' }
4
5 __PACKAGE__->config(namespace => '');
6
7 sub container_class :Local {
8     my ($self, $c) = @_;
9     $c->res->body($c->config->{container_class});
10 }
11
12 sub container_isa :Local {
13     my ($self, $c) = @_;
14     $c->res->body(ref $c->container);
15 }
16
17 sub get_model_bar :Local {
18     my ($self, $c) = @_;
19     $c->res->body(ref $c->model('Bar'));
20 }
21
22 sub get_model_baz :Local {
23     my ($self, $c) = @_;
24     $c->res->body(ref $c->model('Baz'));
25 }
26
27 sub get_model_foo :Local {
28     my ($self, $c) = @_;
29     $c->res->body(ref $c->model('Foo'));
30 }
31
32 __PACKAGE__->meta->make_immutable;
33 no Moose;
34 1;