From 19d2e002d58e36952cd1ee3d21bbad2845329a0d Mon Sep 17 00:00:00 2001 From: Bastien GARCIA Date: Fri, 15 Sep 2023 11:52:47 +0200 Subject: [PATCH] Correct BrowserKitFactory to support the 'http_client_parameters' option --- .../ServiceContainer/Driver/BrowserKitFactory.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserKitFactory.php b/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserKitFactory.php index 3d3ea6e..6907fd7 100644 --- a/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserKitFactory.php +++ b/src/Behat/MinkExtension/ServiceContainer/Driver/BrowserKitFactory.php @@ -39,6 +39,15 @@ public function supportsJavascript() */ public function configure(ArrayNodeDefinition $builder) { + $builder + ->children() + ->arrayNode('http_client_parameters') + ->useAttributeAsKey('key') + ->prototype('variable')->end() + ->info('Set parameters on HttpClient (see https://symfony.com/doc/current/reference/configuration/framework.html#http-client)') + ->end() + ->end() + ; } /**