class CommerceCurrencyResolverTestServiceProvider in Commerce Currency Resolver 8
Overwrite current currency.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\commerce_currency_resolver_test\CommerceCurrencyResolverTestServiceProvider
Expanded class hierarchy of CommerceCurrencyResolverTestServiceProvider
File
- tests/
modules/ commerce_currency_resolver_test/ src/ CommerceCurrencyResolverTestServiceProvider.php, line 11
Namespace
Drupal\commerce_currency_resolver_testView source
class CommerceCurrencyResolverTestServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('commerce_currency_resolver.current_currency');
$definition
->setClass(CurrentCurrencyTest::class);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommerceCurrencyResolverTestServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |