Skip to content

Commit

Permalink
Merge pull request #22 from BitBagCommerce/op-334-sylius-1.13-support
Browse files Browse the repository at this point in the history
OP-334: Deprecated client fix
  • Loading branch information
senghe authored Nov 5, 2024
2 parents b20a47f + 3b6a8fb commit 4b51c74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/Bridge/Przelewy24Bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

namespace BitBag\SyliusPrzelewy24Plugin\Bridge;

use GuzzleHttp\ClientInterface as DeprecatedClientInterface;
use Psr\Http\Client\ClientInterface;
use GuzzleHttp\ClientInterface;

final class Przelewy24Bridge implements Przelewy24BridgeInterface
{
Expand All @@ -22,7 +21,7 @@ final class Przelewy24Bridge implements Przelewy24BridgeInterface
private string $environment = self::SANDBOX_ENVIRONMENT;

public function __construct(
private ClientInterface|DeprecatedClientInterface $client,
private ClientInterface $client,
) {
}

Expand Down
6 changes: 5 additions & 1 deletion src/Resources/config/services/bridge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
services:
bitbag_sylius_przelewy24_plugin.http_client:
class: GuzzleHttp\Client
public: false

bitbag_sylius_przelewy24_plugin.bridge.przelewy24:
class: BitBag\SyliusPrzelewy24Plugin\Bridge\Przelewy24Bridge
public: true
arguments:
- "@sylius.http_client"
- "@bitbag_sylius_przelewy24_plugin.http_client"

0 comments on commit 4b51c74

Please sign in to comment.