mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Merge pull request #377
This commit is contained in:
@@ -24,7 +24,7 @@ if (!isset($_SERVER['APP_ENV'])) {
|
||||
|
||||
$input = new ArgvInput();
|
||||
$env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev', true);
|
||||
$debug = ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true);
|
||||
$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true);
|
||||
|
||||
if ($debug) {
|
||||
umask(0000);
|
||||
|
||||
@@ -16,7 +16,7 @@ if (!isset($_SERVER['APP_ENV'])) {
|
||||
}
|
||||
|
||||
$env = $_SERVER['APP_ENV'] ?? 'dev';
|
||||
$debug = $_SERVER['APP_DEBUG'] ?? ('prod' !== $env);
|
||||
$debug = (bool) $_SERVER['APP_DEBUG'] ?? ('prod' !== $env);
|
||||
|
||||
if ($debug) {
|
||||
umask(0000);
|
||||
|
||||
Reference in New Issue
Block a user