add type with coersion for WebGUI::Config

This commit is contained in:
Graham Knop 2010-06-17 05:54:36 -05:00
parent 19c2c5fa1c
commit 8bfa022441
4 changed files with 16 additions and 12 deletions

View file

@ -4,7 +4,7 @@ use Plack::App::File;
use WebGUI;
builder {
my $wg = WebGUI->new( site => $ENV{WEBGUI_CONFIG} );
my $wg = WebGUI->new( config => $ENV{WEBGUI_CONFIG} );
my $config = $wg->config;
enable 'Log4perl', category => $config->getFilename, conf => WebGUI::Paths->logConfig;