class CommerceMollieTestsServiceProvider in Commerce Mollie 8
Modifies the mollie encapsulation service.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\commerce_mollie_tests\CommerceMollieTestsServiceProvider
Expanded class hierarchy of CommerceMollieTestsServiceProvider
File
- tests/
modules/ commerce_mollie_tests/ src/ CommerceMollieTestsServiceProvider.php, line 11
Namespace
Drupal\commerce_mollie_testsView source
class CommerceMollieTestsServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Overrides language_manager class to test domain language negotiation.
$definition = $container
->getDefinition('commerce_mollie.mollie.api');
$definition
->setClass('Drupal\\commerce_mollie_tests\\Services\\MollieApiMock');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommerceMollieTestsServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |