public function Bundle::getPath in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Bundle/Bundle.php \Symfony\Component\HttpKernel\Bundle\Bundle::getPath()
Gets the Bundle directory path.
Return value
string The Bundle absolute path
Overrides BundleInterface::getPath
1 call to Bundle::getPath()
- Bundle::registerCommands in vendor/
symfony/ http-kernel/ Bundle/ Bundle.php - Finds and registers Commands.
File
- vendor/
symfony/ http-kernel/ Bundle/ Bundle.php, line 117
Class
- Bundle
- An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions and Console commands.
Namespace
Symfony\Component\HttpKernel\BundleCode
public function getPath() {
if (null === $this->path) {
$reflected = new \ReflectionObject($this);
$this->path = dirname($reflected
->getFileName());
}
return $this->path;
}