From d46704d21e0b5a694e7682724b04a945aefa53bc Mon Sep 17 00:00:00 2001 From: Christian Schorn Date: Wed, 31 Oct 2012 18:06:30 +0100 Subject: [PATCH] Moved config loading to index.php As `index.php` is the entry point of the webapp, loading configuration data from the `config.ini` should take place there. This makes testing easier, since a properly formatted `config.ini` (whose values are overriden anyway) is no longer needed. --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index bed5d93..51eaaa6 100644 --- a/index.php +++ b/index.php @@ -11,5 +11,9 @@ if (!ini_get('date.timezone')) { } require 'vendor/autoload.php'; + +// Load configuration +$config = GitList\Config::fromFile('config.ini'); + $app = require 'boot.php'; -$app->run(); \ No newline at end of file +$app->run();