class BynderTestModuleServiceProvider in Bynder 8.3
Same name and namespace in other branches
- 8 tests/modules/bynder_test_module/src/BynderTestModuleServiceProvider.php \Drupal\bynder_test_module\BynderTestModuleServiceProvider
- 8.2 tests/modules/bynder_test_module/src/BynderTestModuleServiceProvider.php \Drupal\bynder_test_module\BynderTestModuleServiceProvider
- 4.0.x tests/modules/bynder_test_module/src/BynderTestModuleServiceProvider.php \Drupal\bynder_test_module\BynderTestModuleServiceProvider
Service provider for the bynder_test_module.
Hierarchy
- class \Drupal\bynder_test_module\BynderTestModuleServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of BynderTestModuleServiceProvider
File
- tests/
modules/ bynder_test_module/ src/ BynderTestModuleServiceProvider.php, line 12
Namespace
Drupal\bynder_test_moduleView source
class BynderTestModuleServiceProvider implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Modifies the Bynder api service to use our test class.
$container
->getDefinition('bynder_api')
->setClass('Drupal\\bynder_test_module\\BynderApiTest')
->setArguments([
new Reference('config.factory'),
new Reference('logger.factory'),
new Reference('session'),
new Reference('state'),
new Reference('cache.default'),
new Reference('datetime.time'),
]);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BynderTestModuleServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |