From f6141322f5bc345913dc710c9864ca7c658ffbd8 Mon Sep 17 00:00:00 2001 From: Omar Mohamad - El Hassan Lopesino Date: Mon, 27 Mar 2017 12:52:42 +0200 Subject: [PATCH 1/2] Add default options for guzzle client --- src/ServiceContainer/WebApiExtension.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ServiceContainer/WebApiExtension.php b/src/ServiceContainer/WebApiExtension.php index e322543..d262858 100644 --- a/src/ServiceContainer/WebApiExtension.php +++ b/src/ServiceContainer/WebApiExtension.php @@ -54,6 +54,10 @@ public function configure(ArrayNodeDefinition $builder) ->scalarNode('base_url') ->defaultValue('http://localhost') ->end() + ->arrayNode('defaults') + ->useAttributeAsKey('key') + ->prototype('variable')->end() + ->end() ->end() ->end(); } From 9df6d5564ff4ce3480e0b592f7584e022b212d77 Mon Sep 17 00:00:00 2001 From: Omar Mohamad - El Hassan Lopesino Date: Wed, 11 Oct 2017 11:24:31 +0200 Subject: [PATCH 2/2] Update WebApiContext.php --- src/Context/WebApiContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context/WebApiContext.php b/src/Context/WebApiContext.php index fa008df..f9516d6 100644 --- a/src/Context/WebApiContext.php +++ b/src/Context/WebApiContext.php @@ -380,7 +380,7 @@ protected function addHeader($name, $value) * * @param string $headerName */ - protected function removeHeader($headerName) + public function removeHeader($headerName) { if (array_key_exists($headerName, $this->headers)) { unset($this->headers[$headerName]);