class TestServiceProvider in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/simpletest/src/TestServiceProvider.php \Drupal\simpletest\TestServiceProvider
Hierarchy
- class \Drupal\simpletest\TestServiceProvider implements ServiceProviderInterface
Expanded class hierarchy of TestServiceProvider
File
- core/
modules/ simpletest/ src/ TestServiceProvider.php, line 13 - Contains \Drupal\simpletest\TestServiceProvider.
Namespace
Drupal\simpletestView source
class TestServiceProvider implements ServiceProviderInterface {
/**
* @var \Drupal\simpletest\TestBase;
*/
public static $currentTest;
/**
* {@inheritdoc}
*/
function register(ContainerBuilder $container) {
if (static::$currentTest && method_exists(static::$currentTest, 'containerBuild')) {
static::$currentTest
->containerBuild($container);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestServiceProvider:: |
public static | property | ||
TestServiceProvider:: |
function |
Registers services to the container. Overrides ServiceProviderInterface:: |