[HttpKernel] removed a circular reference that prevents PHP GC to do its job
This commit is contained in:
parent
49fe3c7c39
commit
6307f41306
@ -29,8 +29,8 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
|
|||||||
abstract class Bundle extends ContainerAware implements BundleInterface
|
abstract class Bundle extends ContainerAware implements BundleInterface
|
||||||
{
|
{
|
||||||
protected $name;
|
protected $name;
|
||||||
protected $reflected;
|
|
||||||
protected $extension;
|
protected $extension;
|
||||||
|
protected $path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Boots the Bundle.
|
* Boots the Bundle.
|
||||||
@ -123,11 +123,12 @@ abstract class Bundle extends ContainerAware implements BundleInterface
|
|||||||
*/
|
*/
|
||||||
public function getPath()
|
public function getPath()
|
||||||
{
|
{
|
||||||
if (null === $this->reflected) {
|
if (null === $this->path) {
|
||||||
$this->reflected = new \ReflectionObject($this);
|
$reflected = new \ReflectionObject($this);
|
||||||
|
$this->path = dirname($reflected->getFileName());
|
||||||
}
|
}
|
||||||
|
|
||||||
return dirname($this->reflected->getFileName());
|
return $this->path;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user