Skip to content

Commit

Permalink
Fix ecs
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Jun 24, 2024
1 parent ec17193 commit d409e4f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

namespace FluxSE\SyliusPayumStripePlugin\Api\PaymentConfiguration;

use FluxSE\PayumStripe\Token\TokenHashKeysInterface;
use FluxSE\SyliusPayumStripePlugin\Api\Payum\CaptureProcessorInterface;
use Payum\Core\Payum;
use Stripe\Checkout\Session;
use Sylius\Bundle\ApiBundle\Payment\PaymentConfigurationProviderInterface;
use Sylius\Component\Core\Model\PaymentInterface;
Expand All @@ -16,6 +14,7 @@ final class StripeCheckoutSessionPaymentConfigProvider implements PaymentConfigu
use StripePaymentConfigProviderTrait {
StripePaymentConfigProviderTrait::__construct as private __stripePaymentConfigProviderConstruct;
}

private CaptureProcessorInterface $captureProcessor;

public function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ final class StripeJsPaymentConfigProvider implements PaymentConfigurationProvide
use StripePaymentConfigProviderTrait {
StripePaymentConfigProviderTrait::__construct as private __stripePaymentConfigProviderConstruct;
}

private CaptureProcessorInterface $captureProcessor;

public function __construct(
Expand Down
1 change: 1 addition & 0 deletions src/Api/Payum/AfterUrlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
final class AfterUrlProvider implements AfterUrlProviderInterface
{
private string $afterPath;

private array $afterParameters;

public function __construct(
Expand Down
1 change: 1 addition & 0 deletions src/Api/Payum/AfterUrlProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
interface AfterUrlProviderInterface
{
public function getAfterPath(PaymentInterface $payment): string;

public function getAfterParameters(PaymentInterface $payment): array;
}
3 changes: 3 additions & 0 deletions src/Api/Payum/CaptureProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
final class CaptureProcessor implements CaptureProcessorInterface
{
private Payum $payum;

private CaptureRequestFactoryInterface $captureRequestFactory;

private AfterUrlProviderInterface $afterUrlProvider;

public function __construct(
Expand All @@ -27,6 +29,7 @@ public function __construct(
$this->captureRequestFactory = $captureRequestFactory;
$this->afterUrlProvider = $afterUrlProvider;
}

public function __invoke(PaymentInterface $payment): array
{
$tokenFactory = $this->payum->getTokenFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class StripeCheckoutSessionGatewayConfigurationType extends AbstractType
{
public function __construct()
{
trigger_error(
@trigger_error(
sprintf(
'"%s" class has been deprecated please use "%s" instead.',
__CLASS__,
StripeGatewayConfigurationType::class
),
E_USER_DEPRECATED
\E_USER_DEPRECATED
);
}

Expand Down
2 changes: 2 additions & 0 deletions src/Provider/StripeJs/DetailsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
final class DetailsProvider implements DetailsProviderInterface
{
private AmountProviderInterface $amountProvider;

private CurrencyProviderInterface $currencyProvider;

private PaymentMethodTypesProviderInterface $paymentMethodTypesProvider;

public function __construct(
Expand Down

0 comments on commit d409e4f

Please sign in to comment.