You are here

public static function TestLogger::register in Configuration selector 8.2

Same name and namespace in other branches
  1. 8 src/TestLogger.php \Drupal\config_selector\TestLogger::register()

Registers the test logger to the container.

Parameters

\Drupal\Core\DependencyInjection\ContainerBuilder $container: The ContainerBuilder to register the test logger to.

1 call to TestLogger::register()
ConfigSelectorTest::register in tests/src/Kernel/ConfigSelectorTest.php
Registers test-specific services.

File

src/TestLogger.php, line 137

Class

TestLogger
A test logger.

Namespace

Drupal\config_selector

Code

public static function register(ContainerBuilder $container) {
  $container
    ->register('config_selector.test_logger', __CLASS__)
    ->addTag('logger');
}