Files
GitList/boot.php
Klaus Silveira 23502ead8a Windows support, fixes #26, #56 and #69
Implementing various workarounds and fixes to get GitList working fine
on Windows.
2012-08-17 01:59:55 -03:00

20 lines
649 B
PHP

<?php
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
define('WINDOWS_BUILD', 1);
}
// Load configuration
$config = new GitList\Config('config.ini');
$config->set('git', 'repositories', rtrim($config->get('git', 'repositories'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR);
// Startup and configure Silex application
$app = new GitList\Application($config, __DIR__);
// Mount the controllers
$app->mount('', new GitList\Controller\MainController());
$app->mount('', new GitList\Controller\BlobController());
$app->mount('', new GitList\Controller\CommitController());
$app->mount('', new GitList\Controller\TreeController());
return $app;