public function WebformTestHandlerRemotePostServiceProvider::alter 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::alter()
Modifies existing service definitions.
Parameters
ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.
Overrides ServiceProviderBase::alter
File
- tests/
modules/ webform_test_handler_remote_post/ src/ WebformTestHandlerRemotePostServiceProvider.php, line 16
Class
- WebformTestHandlerRemotePostServiceProvider
- Overrides the http client factory service.
Namespace
Drupal\webform_test_handler_remote_postCode
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('http_client_factory');
$definition
->setClass('Drupal\\webform_test_handler_remote_post\\WebformTestHandlerRemotePostClientFactory');
}