You are here

class WebformTestHandlerRemotePostServiceProvider in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/modules/webform_test_handler_remote_post/src/WebformTestHandlerRemotePostServiceProvider.php \Drupal\webform_test_handler_remote_post\WebformTestHandlerRemotePostServiceProvider

Overrides the http client factory service.

Hierarchy

Expanded class hierarchy of WebformTestHandlerRemotePostServiceProvider

File

tests/modules/webform_test_handler_remote_post/src/WebformTestHandlerRemotePostServiceProvider.php, line 11

Namespace

Drupal\webform_test_handler_remote_post
View source
class WebformTestHandlerRemotePostServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('http_client_factory');
    $definition
      ->setClass('Drupal\\webform_test_handler_remote_post\\WebformTestHandlerRemotePostClientFactory');
  }

}

Members

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