Skip to content

Commit c8f38eb

Browse files
authored
Merge pull request #1770 from greg0ire/getPath-thingy
Override Bundle::getPath()
2 parents fa3e8e3 + d1701ce commit c8f38eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DoctrineBundle.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
use function assert;
3131
use function class_exists;
3232
use function clearstatcache;
33+
use function dirname;
3334
use function spl_autoload_unregister;
3435

3536
/** @final since 2.9 */
@@ -168,4 +169,9 @@ public function shutdown()
168169
public function registerCommands(Application $application)
169170
{
170171
}
172+
173+
public function getPath(): string
174+
{
175+
return dirname(__DIR__);
176+
}
171177
}

0 commit comments

Comments
 (0)