Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Bundle.php

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\Bundle

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal