#!/usr/bin/env php bootEnv(dirname(__DIR__) . '/.env'); $input = new ArgvInput(); $env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev', true); $debug = (bool) ($_SERVER['APP_DEBUG'] ?? ($env !== 'prod')); $kernel = new Kernel($env, $debug); $application = new Application($kernel); $application->run($input);