mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
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.
20 lines
371 B
PHP
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();
|