web/app.php line 33

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