Enable app debug in config.ini

This commit is contained in:
Jérôme Tamarelle
2012-07-14 13:56:12 +02:00
parent 4cef2830be
commit 929f1807d4
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ repositories = '/var/www/projects/' ; Path to your repositories
; hidden[] = '/var/www/projects/BetaTest'
[app]
debug = false
; If you need to specify custom filetypes for certain extensions, do this here
[filetypes]

View File

@@ -18,6 +18,7 @@ if (empty($config['git']['repositories']) || !is_dir($config['git']['repositorie
require 'vendor/autoload.php';
$app = new Silex\Application();
$app['debug'] = isset($config['app']['debug']) && $config['app']['debug'];
$app['filetypes'] = $config['filetypes'];
$app['hidden'] = isset($config['git']['hidden']) ? $config['git']['hidden'] : array();
$config['git']['repositories'] = rtrim($config['git']['repositories'], DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;