web/app_staging.php line 32

Open in your IDE?
  1. <?php
  2. use Symfony\Component\HttpFoundation\Request;
  3. use Symfony\Component\Debug\Debug;
  4. use Symfony\Component\VarDumper\VarDumper;
  5. // If you don't want to setup permissions the proper way, just uncomment the following PHP line
  6. // read http://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup
  7. // for more information
  8. //umask(0000);
  9. // This check prevents access to debug front controllers that are deployed by accident to production servers.
  10. // Feel free to remove this, extend it, or make something more sophisticated.
  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', 'fe80::1', '::1')) || php_sapi_name() === 'cli-server'
  14. //      || substr($_SERVER['REMOTE_ADDR'], 0, 4) == "192.")
  15. //  ) {
  16. //      header('HTTP/1.0 403 Forbidden');
  17. //      exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  18. //  }
  19. /**
  20.  * @var Composer\Autoload\ClassLoader $loader
  21.  */
  22. $loader = require __DIR__.'/../app/autoload.php';
  23. Debug::enable();
  24. $kernel = new AppKernel('staging'true);
  25. $kernel->loadClassCache();
  26. $request Request::createFromGlobals();
  27. $response $kernel->handle($request);
  28. $response->send();
  29. $kernel->terminate($request$response);
  30. ini_set('date.timezone''Europe/Amsterdam');