Skip to content

Commit

Permalink
Override Bundle::getPath()
Browse files Browse the repository at this point in the history
This is required when the bundle class is not at the root path of the
bundle, which is the case since #1767
  • Loading branch information
greg0ire committed Mar 15, 2024
1 parent fa3e8e3 commit d1701ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DoctrineBundle.php
Expand Up @@ -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 */
Expand Down Expand Up @@ -168,4 +169,9 @@ public function shutdown()
public function registerCommands(Application $application)
{
}

public function getPath(): string
{
return dirname(__DIR__);
}
}

0 comments on commit d1701ce

Please sign in to comment.