From d1943cf34ddd5e2903975745c9fa4a61307a1d89 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Wed, 30 Aug 2017 10:22:22 -0400 Subject: [PATCH] Default to non-debug in index.php and console --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index fa1874aa2..71395e125 100644 --- a/public/index.php +++ b/public/index.php @@ -21,7 +21,7 @@ (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 @@ -32,7 +32,7 @@ // 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();