Update from 5.2

pull/3768/head
Julio Montoya 4 years ago
parent 9731e0b631
commit b15ace8565
  1. 1
      config/services.yaml
  2. 9
      public/index.php

@ -6,6 +6,7 @@ parameters:
secret: '%env(APP_SECRET)%'
locale: '%env(APP_LOCALE)%'
installed: '%env(APP_INSTALLED)%'
container.dumper.inline_factories: true
twig:
form:
resources:

@ -25,16 +25,7 @@ if ($_SERVER['APP_DEBUG']) {
Debug::enable();
}
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);
}
if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();

Loading…
Cancel
Save