From 2467b09b439b29bfa877129ca9373701864b04f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Fri, 22 Dec 2023 14:43:58 +0100 Subject: [PATCH] Fix bundle path for profiler templates (#833) --- src/DoctrineMongoDBBundle.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DoctrineMongoDBBundle.php b/src/DoctrineMongoDBBundle.php index 4c656e8a..79a2a5f5 100644 --- a/src/DoctrineMongoDBBundle.php +++ b/src/DoctrineMongoDBBundle.php @@ -21,6 +21,7 @@ use Symfony\Component\HttpKernel\Bundle\Bundle; use function assert; +use function dirname; use function spl_autoload_register; use function spl_autoload_unregister; @@ -59,6 +60,11 @@ public function getContainerExtension(): ?ExtensionInterface return new DoctrineMongoDBExtension(); } + public function getPath(): string + { + return dirname(__DIR__); + } + public function boot(): void { $registry = $this->container->get('doctrine_mongodb');