4 use Symfony\Bundle\FrameworkBundle\Console\Application
;
5 use Symfony\Component\Console\Input\ArgvInput
;
6 use Symfony\Component\Debug\Debug
;
8 // if you don't want to setup permissions the proper way, just uncomment the following PHP line
9 // read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
10 // for more information
15 require __DIR__
.'/../vendor/autoload.php';
17 $input = new ArgvInput();
18 $env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev', true);
19 $debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption('--no-debug', true) && $env !== 'prod';
25 $kernel = new AppKernel($env, $debug);
26 $application = new Application($kernel);
27 $application->run($input);