Skip to content

Commit 4d50b08

Browse files
Default to non-debug in index.php
1 parent ef0a35a commit 4d50b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

symfony/framework-bundle/3.3/public/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(new Dotenv())->load(__DIR__.'/../.env');
1313
}
1414

15-
if ($_SERVER['APP_DEBUG'] ?? true) {
15+
if ($_SERVER['APP_DEBUG'] ?? false) {
1616
// WARNING: You should setup permissions the proper way!
1717
// REMOVE the following PHP line and read
1818
// https://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup
@@ -23,7 +23,7 @@
2323

2424
// Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED);
2525

26-
$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', $_SERVER['APP_DEBUG'] ?? true);
26+
$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', $_SERVER['APP_DEBUG'] ?? false);
2727
$request = Request::createFromGlobals();
2828
$response = $kernel->handle($request);
2929
$response->send();

0 commit comments

Comments
 (0)