app.php line 27

Open in your IDE?
  1. <?php
  2. ini_set('display_errors'1);
  3. ini_set('display_startup_errors'1);
  4. error_reporting(E_ALL);
  5. use Symfony\Component\HttpFoundation\Request;
  6. require __DIR__.'/vendor/autoload.php';
  7. if (PHP_VERSION_ID 70000) {
  8.     include_once __DIR__.'./var/bootstrap.php.cache';
  9. }
  10. if (file_exists('./src/AppBundle/config.php') === false)  {
  11.     header('Location:' './setup/');
  12.     exit();
  13. }
  14.     
  15. $kernel = new AppKernel('dev'true);
  16. //$kernel = new AppKernel('prod', false);
  17. if (PHP_VERSION_ID 70000) {
  18.     $kernel->loadClassCache();
  19. }
  20. //$kernel = new AppCache($kernel);
  21. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  22. //Request::enableHttpMethodParameterOverride();
  23. $request Request::createFromGlobals();
  24. $response $kernel->handle($request);
  25. $response->send();
  26. $kernel->terminate($request$response);