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.
This commit is contained in:
Christian Schorn
2012-10-31 18:06:30 +01:00
parent 87d6391ba4
commit d46704d21e

View File

@@ -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();
$app->run();