aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/console
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 08:30:07 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 08:30:07 +0100
commit93fd4692f6eb753cae16358131c8049d84cfbb41 (patch)
tree1ef2f66eb378cf419d1aa033a2c772539e60537d /app/console
parent0440249631164a378981d014bf71b617c082bf5a (diff)
downloadwallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.gz
wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.zst
wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.zip
symfony is there
Diffstat (limited to 'app/console')
-rwxr-xr-xapp/console27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/console b/app/console
new file mode 100755
index 00000000..fa6a36e2
--- /dev/null
+++ b/app/console
@@ -0,0 +1,27 @@
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
8set_time_limit(0);
9
10require_once __DIR__.'/bootstrap.php.cache';
11require_once __DIR__.'/AppKernel.php';
12
13use Symfony\Bundle\FrameworkBundle\Console\Application;
14use Symfony\Component\Console\Input\ArgvInput;
15use 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
21if ($debug) {
22 Debug::enable();
23}
24
25$kernel = new AppKernel($env, $debug);
26$application = new Application($kernel);
27$application->run($input);