mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +01:00
17 lines
565 B
PHP
17 lines
565 B
PHP
<?php
|
|
|
|
// 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;
|