diff options
author | lizyn <zhiylin@outlook.com> | 2020-02-24 10:04:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 10:04:13 +0800 |
commit | b19df31d78d881a43bcf6b3215e5fc3781e8e8aa (patch) | |
tree | d0d9861694a4b5e5fbfdbeb53c255ecd15fe9328 /bin | |
parent | 4d0c632c70ea50d459c3c55ddda2e0f394dd51cb (diff) | |
parent | 04d918cae0227c06a41d27fb6533dddbf30dfe71 (diff) | |
download | wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.tar.gz wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.tar.zst wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.zip |
Merge pull request #1 from wallabag/master
Keep up with the master again
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/console | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/bin/console b/bin/console index 49247c94..8cef40b2 100755 --- a/bin/console +++ b/bin/console | |||
@@ -6,19 +6,17 @@ use Symfony\Component\Console\Input\ArgvInput; | |||
6 | use Symfony\Component\Debug\Debug; | 6 | use Symfony\Component\Debug\Debug; |
7 | 7 | ||
8 | // if you don't want to setup permissions the proper way, just uncomment the following PHP line | 8 | // if you don't want to setup permissions the proper way, just uncomment the following PHP line |
9 | // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information | 9 | // read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup |
10 | // for more information | ||
10 | //umask(0000); | 11 | //umask(0000); |
11 | 12 | ||
12 | set_time_limit(0); | 13 | set_time_limit(0); |
13 | 14 | ||
14 | /** | 15 | require __DIR__.'/../vendor/autoload.php'; |
15 | * @var Composer\Autoload\ClassLoader $loader | ||
16 | */ | ||
17 | $loader = require __DIR__.'/../app/autoload.php'; | ||
18 | 16 | ||
19 | $input = new ArgvInput(); | 17 | $input = new ArgvInput(); |
20 | $env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev'); | 18 | $env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev', true); |
21 | $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']) && $env !== 'prod'; | 19 | $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption('--no-debug', true) && $env !== 'prod'; |
22 | 20 | ||
23 | if ($debug) { | 21 | if ($debug) { |
24 | Debug::enable(); | 22 | Debug::enable(); |