#!/usr/bin/env php loadEnv(dirname(__DIR__).'/.env'); $input = new ArgvInput(); $env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'prod'); $debug = (bool) ($_SERVER['APP_DEBUG'] ?? (in_array($env, ['dev', 'test']))) && !$input->hasParameterOption(['--no-debug', '']); if ($debug) { umask(0000); Debug::enable(); } $kernel = new Kernel($env, $debug); $application = new ConsoleApplication($kernel); $application->run($input);