public_html/app.php line 30

Open in your IDE?
  1. <?php
  2. use Symfony\Component\HttpFoundation\Request;
  3. date_default_timezone_set('America/Santiago');
  4. //header('X-Content-Type-Options: nosniff');
  5. //header( 'X-Frame-Options: SAMEORIGIN' );
  6. //header("X-XSS-Protection: 1; mode=block");
  7. //header("X-Frame-Options: SAMEORIGIN");
  8. //header("strict-transport-security: max-age=0");
  9. //ini_set('session.cookie_httponly', 1);
  10. //ini_set('session.use_only_cookies', 1);
  11. //ini_set('session.cookie_secure', 1);
  12. //header("Set-Cookie: key=value; path=/; domain=sipa.cl; HttpOnly; SameSite=Strict");
  13. require __DIR__.'/../vendor/autoload.php';
  14. if (PHP_VERSION_ID 70000) {
  15.     include_once __DIR__.'/../var/bootstrap.php.cache';
  16. }
  17. $kernel = new AppKernel('dev'true);
  18. if (PHP_VERSION_ID 70000) {
  19.     $kernel->loadClassCache();
  20. }
  21. //$kernel = new AppCache($kernel);
  22. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  23. //Request::enableHttpMethodParameterOverride();
  24. $request Request::createFromGlobals();
  25. $response $kernel->handle($request);
  26. $response->send();
  27. $kernel->terminate($request$response);