Gets the Bundle namespace.
@api
Return value
string The Bundle namespace
Overrides BundleInterface::getNamespace
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();
}