class WebformTestHandlerRemotePostServiceProvider in Webform 8.5
Same name and namespace in other branches
- 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
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\webform_test_handler_remote_post\WebformTestHandlerRemotePostServiceProvider
Expanded class hierarchy of WebformTestHandlerRemotePostServiceProvider
File
- tests/
modules/ webform_test_handler_remote_post/ src/ WebformTestHandlerRemotePostServiceProvider.php, line 11
Namespace
Drupal\webform_test_handler_remote_postView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |
WebformTestHandlerRemotePostServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |