#!/usr/bin/env php getParameterOption(['--env', '-e'], getenv('PHP_ENV') ?: 'dev'); $debug = getenv('PHP_DEBUG') !== '0' && !$input->hasParameterOption([ '--no-debug', '', ]) && $env !== 'prod'; if ($debug) { Debug::enable(); } $application = new Application(); $application->add(new \Symfony\Component\Console\Command\HelpCommand()); $application->add(new \Symfony\Component\Console\Command\ListCommand()); $application->run($input, $output);