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