web/app_dev.php line 29

Open in your IDE?
  1. <?php
  2. use Symfony\Component\Debug\Debug;
  3. use Symfony\Component\HttpFoundation\Request;
  4. // If you don't want to setup permissions the proper way, just uncomment the following PHP line
  5. // read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
  6. // for more information
  7. //umask(0000);
  8. // This check prevents access to debug front controllers that are deployed by accident to production servers.
  9. // Feel free to remove this, extend it, or make something more sophisticated.
  10. //if (isset($_SERVER['HTTP_CLIENT_IP'])
  11. //    || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
  12. //    || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'], true) || PHP_SAPI === 'cli-server')
  13. //) {
  14. //    header('HTTP/1.0 403 Forbidden');
  15. //    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  16. //}
  17. require __DIR__.'/../vendor/autoload.php';
  18. Debug::enable();
  19. $kernel = new AppKernel('dev'true);
  20. if (PHP_VERSION_ID 70000) {
  21.     $kernel->loadClassCache();
  22. }
  23. $request Request::createFromGlobals();
  24. $response $kernel->handle($request);
  25. $response->send();
  26. $kernel->terminate($request$response);