diff --git a/.github/ci/files/bin/console b/.github/ci/files/bin/console index c52f9161..3afd8d56 100644 --- a/.github/ci/files/bin/console +++ b/.github/ci/files/bin/console @@ -13,6 +13,8 @@ * @license http://www.pimcore.org/license GPLv3 and PEL */ +use Symfony\Component\Console\Input\InputInterface; + ob_get_clean(); if (file_exists($a = getcwd() . '/vendor/autoload_runtime.php')) { @@ -26,10 +28,9 @@ if (file_exists($a = getcwd() . '/vendor/autoload_runtime.php')) { exit(1); } -return function (array $context) { +return function (InputInterface $input) { define('PIMCORE_CONSOLE', true); - $input = new \Symfony\Component\Console\Input\ArgvInput(); if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) { putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env); }