public function Bundle::getNamespace

Gets the Bundle namespace.

@api

Return value

string The Bundle namespace

Overrides BundleInterface::getNamespace

2 calls to Bundle::getNamespace()
Bundle::getContainerExtension in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Bundle/Bundle.php
Returns the bundle's container extension.
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 110

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 getNamespace() {
  if (null === $this->reflected) {
    $this->reflected = new \ReflectionObject($this);
  }
  return $this->reflected
    ->getNamespaceName();
}