From 8c6ad05cbd54689fbc9409bd799f14888f98fd47 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Thu, 20 Jul 2023 09:21:17 +0200 Subject: [PATCH] add chdir in the console entrypoint --- bin/console | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/console b/bin/console index c933dc5..9906041 100755 --- a/bin/console +++ b/bin/console @@ -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']);