web/app.php line 19

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. $kernel = new AppKernel('dev'true); //iş bittiğinde prod - false olacak.
  8. if (PHP_VERSION_ID 70000) {
  9.     $kernel->loadClassCache();
  10. }
  11. //$kernel = new AppCache($kernel);
  12. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  13. //Request::enableHttpMethodParameterOverride();
  14. $request Request::createFromGlobals();
  15. $response $kernel->handle($request);
  16. $response->send();
  17. $kernel->terminate($request$response);