Files
GitList/index.php
Christian Schorn d46704d21e 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.
2012-10-31 18:06:30 +01:00

20 lines
371 B
PHP

<?php
/**
* GitList 0.3
* https://github.com/klaussilveira/gitlist
*/
// Set the default timezone for systems without date.timezone set in php.ini
if (!ini_get('date.timezone')) {
date_default_timezone_set('UTC');
}
require 'vendor/autoload.php';
// Load configuration
$config = GitList\Config::fromFile('config.ini');
$app = require 'boot.php';
$app->run();