From d1701ce7b9c67ad8f0417ac91bf9ca1f11394647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Fri, 15 Mar 2024 15:58:09 +0100 Subject: [PATCH] Override Bundle::getPath() This is required when the bundle class is not at the root path of the bundle, which is the case since https://github.com/doctrine/DoctrineBundle/pull/1767 --- src/DoctrineBundle.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DoctrineBundle.php b/src/DoctrineBundle.php index 9926beab..9751cdb7 100644 --- a/src/DoctrineBundle.php +++ b/src/DoctrineBundle.php @@ -30,6 +30,7 @@ use function assert; use function class_exists; use function clearstatcache; +use function dirname; use function spl_autoload_unregister; /** @final since 2.9 */ @@ -168,4 +169,9 @@ public function shutdown() public function registerCommands(Application $application) { } + + public function getPath(): string + { + return dirname(__DIR__); + } }