You are here

final public function Bundle::getName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Bundle/Bundle.php \Symfony\Component\HttpKernel\Bundle\Bundle::getName()

Returns the bundle name (the class short name).

Return value

string The Bundle name

Overrides BundleInterface::getName

2 calls to Bundle::getName()
Bundle::getContainerExtension in vendor/symfony/http-kernel/Bundle/Bundle.php
Returns the bundle's container extension.
Bundle::getContainerExtensionClass in vendor/symfony/http-kernel/Bundle/Bundle.php
Returns the bundle's container extension class.

File

vendor/symfony/http-kernel/Bundle/Bundle.php, line 141

Class

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

Namespace

Symfony\Component\HttpKernel\Bundle

Code

public final function getName() {
  if (null !== $this->name) {
    return $this->name;
  }
  $name = get_class($this);
  $pos = strrpos($name, '\\');
  return $this->name = false === $pos ? $name : substr($name, $pos + 1);
}