We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49fe3c7 commit 6307f41Copy full SHA for 6307f41
src/Symfony/Component/HttpKernel/Bundle/Bundle.php
@@ -29,8 +29,8 @@
29
abstract class Bundle extends ContainerAware implements BundleInterface
30
{
31
protected $name;
32
- protected $reflected;
33
protected $extension;
+ protected $path;
34
35
/**
36
* Boots the Bundle.
@@ -123,11 +123,12 @@ public function getNamespace()
123
*/
124
public function getPath()
125
126
- if (null === $this->reflected) {
127
- $this->reflected = new \ReflectionObject($this);
+ if (null === $this->path) {
+ $reflected = new \ReflectionObject($this);
128
+ $this->path = dirname($reflected->getFileName());
129
}
130
- return dirname($this->reflected->getFileName());
131
+ return $this->path;
132
133
134
0 commit comments