diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-15 15:38:31 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-15 15:38:31 +0100 |
commit | 1930c19d8214c05ceefac5ac011a6b6e7e4a983d (patch) | |
tree | 8f07ffa139c7c2e883a560ef7dbb35a76adfb8dd /bin/console | |
parent | 790573d45899504bdecd2573c8f64018e23b139e (diff) | |
parent | 131eaa3e94ace8d75d6218e5c7c3aa58d5bb5009 (diff) | |
download | wallabag-1930c19d8214c05ceefac5ac011a6b6e7e4a983d.tar.gz wallabag-1930c19d8214c05ceefac5ac011a6b6e7e4a983d.tar.zst wallabag-1930c19d8214c05ceefac5ac011a6b6e7e4a983d.zip |
Merge pull request #1524 from wallabag/sf2.8
Upgrade to Symfony 3.0
Diffstat (limited to 'bin/console')
-rwxr-xr-x | bin/console | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/bin/console b/bin/console new file mode 100755 index 00000000..49247c94 --- /dev/null +++ b/bin/console | |||
@@ -0,0 +1,29 @@ | |||
1 | #!/usr/bin/env php | ||
2 | <?php | ||
3 | |||
4 | use Symfony\Bundle\FrameworkBundle\Console\Application; | ||
5 | use Symfony\Component\Console\Input\ArgvInput; | ||
6 | use Symfony\Component\Debug\Debug; | ||
7 | |||
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 | ||
10 | //umask(0000); | ||
11 | |||
12 | set_time_limit(0); | ||
13 | |||
14 | /** | ||
15 | * @var Composer\Autoload\ClassLoader $loader | ||
16 | */ | ||
17 | $loader = require __DIR__.'/../app/autoload.php'; | ||
18 | |||
19 | $input = new ArgvInput(); | ||
20 | $env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev'); | ||
21 | $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']) && $env !== 'prod'; | ||
22 | |||
23 | if ($debug) { | ||
24 | Debug::enable(); | ||
25 | } | ||
26 | |||
27 | $kernel = new AppKernel($env, $debug); | ||
28 | $application = new Application($kernel); | ||
29 | $application->run($input); | ||