add chdir in the console entrypoint

This commit is contained in:
Simon Vieille 2023-07-20 09:21:17 +02:00
parent cc0296e6e2
commit 8c6ad05cbd
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -10,6 +10,8 @@ if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
chdir(__DIR__.'/../');
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);