Commit | Line | Data |
---|---|---|
802a7626 | 1 | package TestApp4; |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
6 | use MRO::Compat; | |
7 | ||
8 | use Catalyst qw/ConfigLoader/; | |
9 | ||
10 | our $VERSION = '0.01'; | |
11 | ||
12 | __PACKAGE__->config( | |
13 | "Plugin::ConfigLoader" => { | |
14 | file => __PACKAGE__->path_to( "config.d" ) | |
15 | } | |
16 | ); | |
17 | ||
18 | __PACKAGE__->setup; | |
19 | ||
20 | sub finalize_config { | |
21 | my $c = shift; | |
22 | $c->config( foo => 'bar4' ); | |
23 | $c->next::method( @_ ); | |
24 | } | |
25 | ||
26 | 1; |