public/index.php line 20

Open in your IDE?
  1. <?php
  2. use App\Kernel;
  3. use Symfony\Component\HttpFoundation\Request;
  4. //die("Wegen Wartungsarbeiten kurzzeitig nicht erreichbar.");
  5. require dirname(__DIR__).'/config/bootstrap.php';
  6. if ($trustedProxies $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
  7.     Request::setTrustedProxies(explode(','$trustedProxies), Request::HEADER_X_FORWARDED_ALL Request::HEADER_X_FORWARDED_HOST);
  8. }
  9. if ($trustedHosts $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
  10.     Request::setTrustedHosts([$trustedHosts]);
  11. }
  12. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  13. $request Request::createFromGlobals();
  14. $response $kernel->handle($request);
  15. $response->send();
  16. $kernel->terminate($request$response);