WebformTestHandlerRemotePostServiceProvider.php in Webform 8.5
Same filename and directory in other branches
Namespace
Drupal\webform_test_handler_remote_postFile
tests/modules/webform_test_handler_remote_post/src/WebformTestHandlerRemotePostServiceProvider.phpView 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
Name![]() |
Description |
---|---|
WebformTestHandlerRemotePostServiceProvider | Overrides the http client factory service. |