Skip to content

Commit

Permalink
Merge pull request #21 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 Jun 25, 2024
2 parents b093c09 + 750b786 commit f2d4f95
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Bridge/Przelewy24Bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

namespace BitBag\SyliusPrzelewy24Plugin\Bridge;

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

final class Przelewy24Bridge implements Przelewy24BridgeInterface
{
Expand All @@ -20,11 +21,9 @@ final class Przelewy24Bridge implements Przelewy24BridgeInterface

private string $environment = self::SANDBOX_ENVIRONMENT;

private ClientInterface $client;

public function __construct(ClientInterface $client)
{
$this->client = $client;
public function __construct(
private ClientInterface|DeprecatedClientInterface $client,
) {
}

public function setAuthorizationData(
Expand Down

0 comments on commit f2d4f95

Please sign in to comment.