public function LanguageTestBundle::build

Overrides \Symfony\Component\HttpKernel\Bundle\Bundle::build().

Overrides Bundle::build

File

drupal/core/modules/language/tests/language_test/lib/Drupal/language_test/LanguageTestBundle.php, line 21
Contains \Drupal\language_test\LanguageTestBundle.

Class

LanguageTestBundle
Defines the LanguageTest bundle.

Namespace

Drupal\language_test

Code

public function build(ContainerBuilder $container) {

  // Overrides language_manager class to test domain language negotiation.
  $definition = $container
    ->getDefinition('language_manager');
  $definition
    ->setClass('Drupal\\language_test\\LanguageTestManager');
}