web/app_dev.php line 37

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 (0) {
  11. if (isset($_SERVER['HTTP_CLIENT_IP'])
  12.     || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
  13.     || !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1''::1'), true) || PHP_SAPI === 'cli-server')
  14. ) {
  15.     header('HTTP/1.0 403 Forbidden');
  16.     exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  17. }
  18. }
  19. // require __DIR__.'/../app/autoload.php';
  20. error_log("0.tk  app_dev - __DIR__=" __DIR__);
  21. //require "/home/skymark/ncbsw/web".'/../app/autoload.php';
  22. require __DIR__.'/../app/autoload.php';
  23. //"/home/skymark/ncbsw/web"
  24. error_log("0.1 enable debug ");
  25. Debug::enable();
  26. error_log("0.15 look for kernel ");
  27. $kernel = new AppKernel('dev'true);
  28. error_log("0.2 got kernel ");
  29. $kernel->loadClassCache();
  30. error_log("0.3 ClassCache loaded ");
  31. $request Request::createFromGlobals();
  32. $response $kernel->handle($request);
  33. $response->send();
  34. $kernel->terminate($request$response);