You are here

public function CommerceCurrencyResolverTestServiceProvider::alter in Commerce Currency Resolver 8

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

Overrides ServiceProviderBase::alter

File

tests/modules/commerce_currency_resolver_test/src/CommerceCurrencyResolverTestServiceProvider.php, line 16

Class

CommerceCurrencyResolverTestServiceProvider
Overwrite current currency.

Namespace

Drupal\commerce_currency_resolver_test

Code

public function alter(ContainerBuilder $container) {
  $definition = $container
    ->getDefinition('commerce_currency_resolver.current_currency');
  $definition
    ->setClass(CurrentCurrencyTest::class);
}