Revert "Merge pull request #555"

This reverts commit d87f53b77c, reversing
changes made to 8bd4f13853.
This commit is contained in:
Fabien Potencier
2019-03-29 18:01:57 +01:00
parent 3ce1c4c1d7
commit f1d0ca324d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,6 +33,6 @@ if ($_SERVER['APP_DEBUG']) {
}
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG'], dirname(__DIR__));
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$application = new Application($kernel);
$application->run($input);
@@ -20,7 +20,7 @@ if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG'], dirname(__DIR__));
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();