tests for the config( ...->{file} ) option. addresses bug when ->{file} is a dir...
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / lib / TestApp2 / Controller / Config.pm
CommitLineData
802a7626 1package TestApp2::Controller::Config;
2
3use strict;
4use warnings;
5
6use base qw( Catalyst::Controller );
7
8sub index : Private {
9 my ( $self, $c ) = @_;
10 $c->res->output( $self->{ foo } );
11}
12
13sub appconfig : Global {
14 my ( $self, $c, $var ) = @_;
15
16 $c->res->body( $c->config->{ $var } );
17}
18
191;