Skip to content

Commit 2bac1f1

Browse files
committed
use MetaCPAN::Server::Config to configure catalyst
While the ConfigLoader plugin for Catalyst mostly matches the behavior of our Config module, it can have some differences. In particular, it may not properly load the testing config.
1 parent e1057e8 commit 2bac1f1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/MetaCPAN/Server.pm

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ use Moose;
44

55
## no critic (Modules::RequireEndWithOne)
66
use Catalyst qw( +MetaCPAN::Role::Fastly::Catalyst ), '-Log=warn,error,fatal';
7-
use Digest::SHA ();
8-
use Log::Log4perl::Catalyst ();
9-
use Plack::Builder qw( builder enable );
10-
use Ref::Util qw( is_arrayref is_hashref );
7+
use Digest::SHA ();
8+
use Log::Log4perl::Catalyst ();
9+
use Plack::Builder qw( builder enable );
10+
use Ref::Util qw( is_arrayref is_hashref );
11+
use MetaCPAN::Server::Config ();
1112

1213
extends 'Catalyst';
1314

@@ -72,9 +73,9 @@ __PACKAGE__->config(
7273

7374
__PACKAGE__->log( Log::Log4perl::Catalyst->new( undef, autoflush => 1 ) );
7475

76+
__PACKAGE__->config( MetaCPAN::Server::Config::config() );
7577
__PACKAGE__->setup( qw(
7678
Static::Simple
77-
ConfigLoader
7879
Session
7980
Session::Store::ElasticSearch
8081
Session::State::Cookie

0 commit comments

Comments
 (0)