public function Bundle::getPath

Gets the Bundle directory path.

@api

Return value

string The Bundle absolute path

Overrides BundleInterface::getPath

1 call to Bundle::getPath()
Bundle::registerCommands in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Bundle/Bundle.php
Finds and registers Commands.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Bundle/Bundle.php, line 126

Class

Bundle
An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions and Console commands.

Namespace

Symfony\Component\HttpKernel\Bundle

Code

public function getPath() {
  if (null === $this->reflected) {
    $this->reflected = new \ReflectionObject($this);
  }
  return dirname($this->reflected
    ->getFileName());
}