app.php line 25

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