Skip to content

Commit d1943cf

Browse files
committed
Default to non-debug in index.php and console
1 parent c0f6e71 commit d1943cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
(new Dotenv())->load(__DIR__.'/../.env');
2222
}
2323

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

3333
// Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED);
3434

35-
$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', $_SERVER['APP_DEBUG'] ?? true);
35+
$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', $_SERVER['APP_DEBUG'] ?? false);
3636
$request = Request::createFromGlobals();
3737
$response = $kernel->handle($request);
3838
$response->send();

0 commit comments

Comments
 (0)