wallabag/bin/console

28 lines
843 B
Plaintext
Raw Normal View History

2015-01-22 07:30:07 +00: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 07:30:07 +00:00
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
2018-10-24 19:02:35 +00:00
// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
// for more information
2015-01-22 07:30:07 +00:00
//umask(0000);
set_time_limit(0);
2018-10-24 19:02:35 +00:00
require __DIR__.'/../vendor/autoload.php';
2015-01-22 07:30:07 +00:00
$input = new ArgvInput();
2018-10-24 19:02:35 +00: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 07:30:07 +00:00
if ($debug) {
Debug::enable();
}
$kernel = new AppKernel($env, $debug);
$application = new Application($kernel);
$application->run($input);