diff --git a/symfony/console/5.3/bin/console b/symfony/console/5.3/bin/console new file mode 100755 index 00000000..c933dc53 --- /dev/null +++ b/symfony/console/5.3/bin/console @@ -0,0 +1,17 @@ +#!/usr/bin/env php +bootEnv(dirname(__DIR__).'/.env'); - -if ($_SERVER['APP_DEBUG']) { - umask(0000); - - Debug::enable(); -} - -$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); -$request = Request::createFromGlobals(); -$response = $kernel->handle($request); -$response->send(); -$kernel->terminate($request, $response); +return function (array $context) { + return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); +};