function Bundle::parseClassName
2 calls to Bundle::parseClassName()
- Bundle::getName in vendor/
symfony/ http-kernel/ Bundle/ Bundle.php - Returns the bundle name (the class short name).
- Bundle::getNamespace in vendor/
symfony/ http-kernel/ Bundle/ Bundle.php - Gets the Bundle namespace.
File
-
vendor/
symfony/ http-kernel/ Bundle/ Bundle.php, line 146
Class
- Bundle
- An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions.
Namespace
Symfony\Component\HttpKernel\BundleCode
private function parseClassName() : void {
$pos = strrpos(static::class, '\\');
$this->namespace = false === $pos ? '' : substr(static::class, 0, $pos);
$this->name ??= false === $pos ? static::class : substr(static::class, $pos + 1);
}