You are here

class CommerceCurrencyResolverTestServiceProvider in Commerce Currency Resolver 8

Overwrite current currency.

Hierarchy

Expanded class hierarchy of CommerceCurrencyResolverTestServiceProvider

File

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

Namespace

Drupal\commerce_currency_resolver_test
View source
class CommerceCurrencyResolverTestServiceProvider extends ServiceProviderBase {

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

}

Members

Namesort descending Modifiers Type Description Overrides
CommerceCurrencyResolverTestServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1