You are here

class CommerceMollieTestsServiceProvider in Commerce Mollie 8

Modifies the mollie encapsulation service.

Hierarchy

Expanded class hierarchy of CommerceMollieTestsServiceProvider

File

tests/modules/commerce_mollie_tests/src/CommerceMollieTestsServiceProvider.php, line 11

Namespace

Drupal\commerce_mollie_tests
View 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

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