package MyApp;
use strict;
- use Catalyst qw/-Debug/; # Add other plugins here, e.g.
- # for session support
-
+ use parent qw/Catalyst/;
+ __PACKAGE__->setup(qw/-Debug ConfigLoader Static::Simple/);
+ # note you can still use use Catalyst qw/@plugins/ instead of the
+ # above two lines
MyApp->config(
name => 'My Application',