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 /app/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 'app/console')
-rwxr-xr-x | app/console | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app/console b/app/console deleted file mode 100755 index fa6a36e2..00000000 --- a/app/console +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | #!/usr/bin/env php | ||
2 | <?php | ||
3 | |||
4 | // if you don't want to setup permissions the proper way, just uncomment the following PHP line | ||
5 | // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information | ||
6 | //umask(0000); | ||
7 | |||
8 | set_time_limit(0); | ||
9 | |||
10 | require_once __DIR__.'/bootstrap.php.cache'; | ||
11 | require_once __DIR__.'/AppKernel.php'; | ||
12 | |||
13 | use Symfony\Bundle\FrameworkBundle\Console\Application; | ||
14 | use Symfony\Component\Console\Input\ArgvInput; | ||
15 | use Symfony\Component\Debug\Debug; | ||
16 | |||
17 | $input = new ArgvInput(); | ||
18 | $env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); | ||
19 | $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod'; | ||
20 | |||
21 | if ($debug) { | ||
22 | Debug::enable(); | ||
23 | } | ||
24 | |||
25 | $kernel = new AppKernel($env, $debug); | ||
26 | $application = new Application($kernel); | ||
27 | $application->run($input); | ||