1
0
mirror of https://github.com/wallabag/wallabag.git synced 2024-12-26 15:32:44 +01:00
wallabag/bin/console

28 lines
843 B
Plaintext
Raw Normal View History

2015-01-22 08:30:07 +01:00
#!/usr/bin/env php
<?php
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;
2015-01-22 08:30:07 +01:00
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
2018-10-24 21:02:35 +02:00
// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
// for more information
2015-01-22 08:30:07 +01:00
//umask(0000);
set_time_limit(0);
2018-10-24 21:02:35 +02:00
require __DIR__.'/../vendor/autoload.php';
2015-01-22 08:30:07 +01:00
$input = new ArgvInput();
2018-10-24 21:02:35 +02:00
$env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev', true);
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption('--no-debug', true) && $env !== 'prod';
2015-01-22 08:30:07 +01:00
if ($debug) {
Debug::enable();
}
$kernel = new AppKernel($env, $debug);
$application = new Application($kernel);
$application->run($input);