File tree 2 files changed +14
-0
lines changed
src/Symfony/Component/HttpKernel
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -47,4 +47,17 @@ public function getContainerExtension(): ?ExtensionInterface
47
47
48
48
return $ this ->extension ??= new BundleExtension ($ this , $ this ->extensionAlias );
49
49
}
50
+
51
+ /**
52
+ * {@inheritdoc}
53
+ */
54
+ public function getPath (): string
55
+ {
56
+ if (null === $ this ->path ) {
57
+ $ reflected = new \ReflectionObject ($ this );
58
+ $ this ->path = \dirname ($ reflected ->getFileName (), 2 );
59
+ }
60
+
61
+ return $ this ->path ;
62
+ }
50
63
}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ CHANGELOG
10
10
* Add ` Profiler::isEnabled() ` so collaborating collector services may elect to omit themselves
11
11
* Add the ` UidValueResolver ` argument value resolver
12
12
* Add ` AbstractBundle ` class for DI configuration/definition on a single file
13
+ * Update the path of a bundle placed in the ` src/ ` directory to the parent directory when ` AbstractBundle ` is used
13
14
14
15
6.0
15
16
---
You can’t perform that action at this time.
0 commit comments