aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/console
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-01-14 18:15:07 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-15 09:35:39 +0100
commit73cd160bfc6e4a1b88f2117eb0c097a91ac5c753 (patch)
treec5ccc9fa57f243126538ae8d9a2f8c459c08bd8c /app/console
parent1d405d0e62a708928bccd2222ebd89d4804231f9 (diff)
downloadwallabag-73cd160bfc6e4a1b88f2117eb0c097a91ac5c753.tar.gz
wallabag-73cd160bfc6e4a1b88f2117eb0c097a91ac5c753.tar.zst
wallabag-73cd160bfc6e4a1b88f2117eb0c097a91ac5c753.zip
Switch to Symfony 3 structure
Diffstat (limited to 'app/console')
-rwxr-xr-xapp/console29
1 files changed, 0 insertions, 29 deletions
diff --git a/app/console b/app/console
deleted file mode 100755
index 3b4c367c..00000000
--- a/app/console
+++ /dev/null
@@ -1,29 +0,0 @@
1#!/usr/bin/env php
2<?php
3
4use Symfony\Bundle\FrameworkBundle\Console\Application;
5use Symfony\Component\Console\Input\ArgvInput;
6use 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
12set_time_limit(0);
13
14/**
15 * @var Composer\Autoload\ClassLoader $loader
16 */
17$loader = require __DIR__.'/autoload.php';
18
19$input = new ArgvInput();
20$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
21$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
22
23if ($debug) {
24 Debug::enable();
25}
26
27$kernel = new AppKernel($env, $debug);
28$application = new Application($kernel);
29$application->run($input);