web/app_dev.php line 31

Open in your IDE?
  1. <?php
  2. use Symfony\Component\HttpFoundation\Request;
  3. use Symfony\Component\Debug\Debug;
  4. // If you don't want to setup permissions the proper way, just uncomment the following PHP line
  5. // read http://symfony.com/doc/current/book/installation.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. //$allowedIP = ['127.0.0.1', 'fe80::1', '::1', '109.164.242.211', '94.103.96.220', '192.168.204.1', '188.61.237.180', '192.168.204.28', '192.168.204.22'];
  11. //if (isset($_SERVER['HTTP_CLIENT_IP'])
  12. //    || (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && !(in_array(@$_SERVER['HTTP_X_FORWARDED_FOR'], $allowedIP)))
  13. //    || !(in_array(@$_SERVER['REMOTE_ADDR'], $allowedIP) || php_sapi_name() === '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.  * @var Composer\Autoload\ClassLoader $loader
  20.  */
  21. $loader = require __DIR__.'/../app/autoload.php';
  22. Debug::enable();
  23. $kernel = new AppKernel('dev'true);
  24. //$kernel->loadClassCache();
  25. $request Request::createFromGlobals();
  26. $response $kernel->handle($request);
  27. $response->send();
  28. $kernel->terminate($request$response);