Initial commit with basic structure

This commit is contained in:
BackIsBachus
2017-09-17 08:09:11 +02:00
commit b0d0c4ebcc
26 changed files with 3587 additions and 0 deletions

18
config/dev.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
use Silex\Provider\MonologServiceProvider;
use Silex\Provider\WebProfilerServiceProvider;
// include the prod configuration
require __DIR__.'/prod.php';
// enable the debug mode
$app['debug'] = true;
$app->register(new MonologServiceProvider(), array(
'monolog.logfile' => __DIR__.'/../var/logs/silex_dev.log',
));
$app->register(new WebProfilerServiceProvider(), array(
'profiler.cache_dir' => __DIR__.'/../var/cache/profiler',
));

7
config/prod.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
// configure your app for the production environment
$app['twig.path'] = array(__DIR__.'/../templates');
$app['twig.options'] = array('cache' => __DIR__.'/../var/cache/twig');
$app['db_config'] = array('path' => '/home/backisbachus/gw2/stats.db', 'records_table' => 'records', 'diff_table' => 'diff');