function Bundle::getPath
Overrides BundleInterface::getPath
1 method overrides Bundle::getPath()
- AbstractBundle::getPath in vendor/
symfony/ http-kernel/ Bundle/ AbstractBundle.php - Gets the Bundle directory path.
File
-
vendor/
symfony/ http-kernel/ Bundle/ Bundle.php, line 99
Class
- Bundle
- An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions.
Namespace
Symfony\Component\HttpKernel\BundleCode
public function getPath() : string {
if (!isset($this->path)) {
$reflected = new \ReflectionObject($this);
$this->path = \dirname($reflected->getFileName());
}
return $this->path;
}