Skip to content

Commit

Permalink
bug #626 Default to non-debug in index.php and console (yceruto)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Default to non-debug in index.php and console

See symfony/recipes#163

Commits
-------

d1943cf Default to non-debug in index.php and console
  • Loading branch information
javiereguiluz committed Aug 30, 2017
2 parents c0f6e71 + d1943cf commit 5358558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/index.php
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit 5358558

Please sign in to comment.