projects
/
catagits/Catalyst-Runtime.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Copied and adapted tests from Catalyst::Plugin::ConfigLoader
[catagits/Catalyst-Runtime.git]
/
t
/
lib
/
TestAppContainer
/
Controller
/
Config.pm
1
package TestAppContainer::Controller::Config;
2
3
use strict;
4
use warnings;
5
6
use base qw( Catalyst::Controller );
7
8
sub index : Private {
9
my ( $self, $c ) = @_;
10
$c->res->output( $self->{ foo } );
11
}
12
13
sub appconfig : Global {
14
my ( $self, $c, $var ) = @_;
15
$c->res->body( $c->config->{ $var } );
16
}
17
18
1;