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