From 99ea5aa09435ffee76310d7ef63031d6dca396f4 Mon Sep 17 00:00:00 2001
From: Francis Hilaire <Prometee@users.noreply.github.com>
Date: Sat, 8 Jun 2024 18:21:58 +0200
Subject: [PATCH 1/2] Remove requirement

---
 composer.json | 1 -
 1 file changed, 1 deletion(-)

diff --git a/composer.json b/composer.json
index ad23c8e..7120abf 100644
--- a/composer.json
+++ b/composer.json
@@ -25,7 +25,6 @@
     ],
     "require": {
         "php": ">=8.1",
-        "php-http/httplug": "^1.0|^2.0",
         "php-http/client-implementation": "^1.0",
         "php-http/client-common": "^2.1",
         "php-http/discovery": "^1.7",

From 56f9ad6b993f0672df1ffaacb8de6a62f94f0926 Mon Sep 17 00:00:00 2001
From: Francis Hilaire <Prometee@users.noreply.github.com>
Date: Sat, 8 Jun 2024 18:22:38 +0200
Subject: [PATCH 2/2] Move namespace

---
 src/Builder/OdooApiClientBuilder.php                          | 4 ++--
 src/Builder/OdooApiClientBuilderInterface.php                 | 2 +-
 src/{HttPlug => HttpClient}/Factory/OdooHttpClientFactory.php | 4 ++--
 .../Factory/OdooHttpClientFactoryInterface.php                | 2 +-
 src/{HttPlug => HttpClient}/Plugin/OdooApiErrorPlugin.php     | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
 rename src/{HttPlug => HttpClient}/Factory/OdooHttpClientFactory.php (94%)
 rename src/{HttPlug => HttpClient}/Factory/OdooHttpClientFactoryInterface.php (91%)
 rename src/{HttPlug => HttpClient}/Plugin/OdooApiErrorPlugin.php (98%)

diff --git a/src/Builder/OdooApiClientBuilder.php b/src/Builder/OdooApiClientBuilder.php
index e187f43..6e94a12 100644
--- a/src/Builder/OdooApiClientBuilder.php
+++ b/src/Builder/OdooApiClientBuilder.php
@@ -9,8 +9,8 @@
 use FluxSE\OdooApiClient\Api\OdooApiRequestMaker;
 use FluxSE\OdooApiClient\Api\OdooApiRequestMakerInterface;
 use FluxSE\OdooApiClient\Api\RequestBody;
-use FluxSE\OdooApiClient\HttPlug\Factory\OdooHttpClientFactory;
-use FluxSE\OdooApiClient\HttPlug\Factory\OdooHttpClientFactoryInterface;
+use FluxSE\OdooApiClient\HttpClient\Factory\OdooHttpClientFactory;
+use FluxSE\OdooApiClient\HttpClient\Factory\OdooHttpClientFactoryInterface;
 use FluxSE\OdooApiClient\Operations\CommonOperations;
 use FluxSE\OdooApiClient\Operations\CommonOperationsInterface;
 use FluxSE\OdooApiClient\Operations\DbOperations;
diff --git a/src/Builder/OdooApiClientBuilderInterface.php b/src/Builder/OdooApiClientBuilderInterface.php
index 53123a8..14f9a0f 100644
--- a/src/Builder/OdooApiClientBuilderInterface.php
+++ b/src/Builder/OdooApiClientBuilderInterface.php
@@ -6,7 +6,7 @@
 
 use FluxSE\OdooApiClient\Api\Factory\RequestBodyFactoryInterface;
 use FluxSE\OdooApiClient\Api\OdooApiRequestMakerInterface;
-use FluxSE\OdooApiClient\HttPlug\Factory\OdooHttpClientFactoryInterface;
+use FluxSE\OdooApiClient\HttpClient\Factory\OdooHttpClientFactoryInterface;
 use FluxSE\OdooApiClient\Operations\CommonOperationsInterface;
 use FluxSE\OdooApiClient\Operations\DbOperationsInterface;
 use FluxSE\OdooApiClient\Operations\Object\ExecuteKw\OperationsInterface as ExecuteKwOperationsInterface;
diff --git a/src/HttPlug/Factory/OdooHttpClientFactory.php b/src/HttpClient/Factory/OdooHttpClientFactory.php
similarity index 94%
rename from src/HttPlug/Factory/OdooHttpClientFactory.php
rename to src/HttpClient/Factory/OdooHttpClientFactory.php
index a6a7f70..4c9bd33 100644
--- a/src/HttPlug/Factory/OdooHttpClientFactory.php
+++ b/src/HttpClient/Factory/OdooHttpClientFactory.php
@@ -2,9 +2,9 @@
 
 declare(strict_types=1);
 
-namespace FluxSE\OdooApiClient\HttPlug\Factory;
+namespace FluxSE\OdooApiClient\HttpClient\Factory;
 
-use FluxSE\OdooApiClient\HttPlug\Plugin\OdooApiErrorPlugin;
+use FluxSE\OdooApiClient\HttpClient\Plugin\OdooApiErrorPlugin;
 use FluxSE\OdooApiClient\Serializer\RpcSerializerHelperInterface;
 use Http\Client\Common\Plugin;
 use Http\Client\Common\Plugin\ContentTypePlugin;
diff --git a/src/HttPlug/Factory/OdooHttpClientFactoryInterface.php b/src/HttpClient/Factory/OdooHttpClientFactoryInterface.php
similarity index 91%
rename from src/HttPlug/Factory/OdooHttpClientFactoryInterface.php
rename to src/HttpClient/Factory/OdooHttpClientFactoryInterface.php
index 46784b6..5abebb7 100644
--- a/src/HttPlug/Factory/OdooHttpClientFactoryInterface.php
+++ b/src/HttpClient/Factory/OdooHttpClientFactoryInterface.php
@@ -2,7 +2,7 @@
 
 declare(strict_types=1);
 
-namespace FluxSE\OdooApiClient\HttPlug\Factory;
+namespace FluxSE\OdooApiClient\HttpClient\Factory;
 
 use FluxSE\OdooApiClient\Serializer\RpcSerializerHelperInterface;
 use Http\Client\Common\Plugin;
diff --git a/src/HttPlug/Plugin/OdooApiErrorPlugin.php b/src/HttpClient/Plugin/OdooApiErrorPlugin.php
similarity index 98%
rename from src/HttPlug/Plugin/OdooApiErrorPlugin.php
rename to src/HttpClient/Plugin/OdooApiErrorPlugin.php
index 54e8593..5014216 100644
--- a/src/HttPlug/Plugin/OdooApiErrorPlugin.php
+++ b/src/HttpClient/Plugin/OdooApiErrorPlugin.php
@@ -2,7 +2,7 @@
 
 declare(strict_types=1);
 
-namespace FluxSE\OdooApiClient\HttPlug\Plugin;
+namespace FluxSE\OdooApiClient\HttpClient\Plugin;
 
 use FluxSE\OdooApiClient\Api\Fault;
 use FluxSE\OdooApiClient\Api\FaultInterface;