dev.php 444 B

123456789101112131415161718
  1. <?php
  2. use Silex\Provider\MonologServiceProvider;
  3. use Silex\Provider\WebProfilerServiceProvider;
  4. // include the prod configuration
  5. require __DIR__ . '/prod.php';
  6. // enable the debug mode
  7. $app['debug'] = true;
  8. $app->register(new MonologServiceProvider(), [
  9. 'monolog.logfile' => __DIR__ . '/../var/logs/silex_dev.log',
  10. ]);
  11. $app->register(new WebProfilerServiceProvider(), [
  12. 'profiler.cache_dir' => __DIR__ . '/../var/cache/profiler',
  13. ]);