File: TestApp2.pm

package info (click to toggle)
libcatalyst-plugin-configloader-perl 0.35-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 280 kB
  • sloc: perl: 371; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package TestApp2;

use strict;
use warnings;

use MRO::Compat;

use Catalyst qw/ConfigLoader/;

__PACKAGE__->config( "Plugin::ConfigLoader",
                     {
                         file => __PACKAGE__->path_to( "customconfig.pl" )
                     }
                 );

our $VERSION = '0.01';

__PACKAGE__->setup;

sub finalize_config {
    my $c = shift;
    $c->config( foo => 'bar2' );
    $c->next::method( @_ );
}

1;