web/index_dev.php line 23

Open in your IDE?
  1. <?php
  2. use Symfony\Component\Debug\Debug;
  3. // This check prevents access to debug front controllers that are deployed by accident to production servers.
  4. // Feel free to remove this, extend it, or make something more sophisticated.
  5. //if (isset($_SERVER['HTTP_CLIENT_IP'])
  6. //    || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
  7. //    || !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1'))
  8. //) {
  9. //    header('HTTP/1.0 403 Forbidden');
  10. //    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  11. //}
  12. require_once __DIR__.'/../vendor/autoload.php';
  13. Debug::enable();
  14. $app = require __DIR__.'/../src/app.php';
  15. require __DIR__.'/../config/dev.php';
  16. $app->boot();
  17. require __DIR__.'/../src/controllers.php';
  18. $app->run();