f4b973afb3c42df7c3e9a1a1f62f0f52ec148e15
[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 __PACKAGE__->meta->make_immutable;
18 no Moose;
19 1;