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');