app_dev.php 706B

123456789101112131415161718192021
  1. <?php
  2. //// this check prevents access to debug front controllers that are deployed by accident to production servers.
  3. //// feel free to remove this, extend it, or make something more sophisticated.
  4. //if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
  5. // '127.0.0.1',
  6. // '::1',
  7. //))) {
  8. // header('HTTP/1.0 403 Forbidden');
  9. // exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  10. //}
  11. require_once __DIR__.'/../app/bootstrap.php.cache';
  12. require_once __DIR__.'/../app/AppKernel.php';
  13. use Symfony\Component\HttpFoundation\Request;
  14. $kernel = new AppKernel('dev', true);
  15. $kernel->loadClassCache();
  16. $kernel->handle(Request::createFromGlobals())->send();