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

Breadcrumb

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

function Bundle::getContainerExtensionClass

Returns the bundle's container extension class.

1 call to Bundle::getContainerExtensionClass()
Bundle::createContainerExtension in vendor/symfony/http-kernel/Bundle/Bundle.php
Creates the bundle's container extension.

File

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

Class

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

Namespace

Symfony\Component\HttpKernel\Bundle

Code

protected function getContainerExtensionClass() : string {
    $basename = preg_replace('/Bundle$/', '', $this->getName());
    return $this->getNamespace() . '\\DependencyInjection\\' . $basename . 'Extension';
}

API Navigation

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