mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Default to non-debug in index.php
This commit is contained in:
@@ -12,7 +12,7 @@ if (!isset($_SERVER['APP_ENV'])) {
|
||||
(new Dotenv())->load(__DIR__.'/../.env');
|
||||
}
|
||||
|
||||
if ($_SERVER['APP_DEBUG'] ?? true) {
|
||||
if ($_SERVER['APP_DEBUG'] ?? false) {
|
||||
// WARNING: You should setup permissions the proper way!
|
||||
// REMOVE the following PHP line and read
|
||||
// https://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup
|
||||
@@ -23,7 +23,7 @@ if ($_SERVER['APP_DEBUG'] ?? true) {
|
||||
|
||||
// Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED);
|
||||
|
||||
$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', $_SERVER['APP_DEBUG'] ?? true);
|
||||
$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', $_SERVER['APP_DEBUG'] ?? false);
|
||||
$request = Request::createFromGlobals();
|
||||
$response = $kernel->handle($request);
|
||||
$response->send();
|
||||
|
||||
Reference in New Issue
Block a user