You are here

WebformTestHandlerRemotePostServiceProvider.php in Webform 8.5

File

tests/modules/webform_test_handler_remote_post/src/WebformTestHandlerRemotePostServiceProvider.php
View source
<?php

namespace Drupal\webform_test_handler_remote_post;

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;

/**
 * Overrides the http client factory service.
 */
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');
  }

}

Classes

Namesort descending Description
WebformTestHandlerRemotePostServiceProvider Overrides the http client factory service.