Skip to content

Commit

Permalink
OP-448 - Remove session service
Browse files Browse the repository at this point in the history
  • Loading branch information
JanPalen committed Jul 31, 2024
1 parent 2308225 commit 2774721
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/Action/NotifyAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Payum\Core\Reply\HttpResponse;
use Payum\Core\Request\GetHttpRequest;
use Payum\Core\Request\Notify;
use Psr\Log\LoggerInterface;
use SM\Factory\FactoryInterface;
use Sylius\Bundle\PayumBundle\Model\GatewayConfigInterface;
use Sylius\Component\Core\Model\OrderInterface;
Expand All @@ -32,11 +33,15 @@ final class NotifyAction implements ActionInterface, ApiAwareInterface, GatewayA
{
use GatewayAwareTrait, ApiAwareTrait;

/** @var LoggerInterface */
private $logger;

/** @var FactoryInterface */
private $stateMachineFactory;

public function __construct(FactoryInterface $stateMachineFactory)
public function __construct(LoggerInterface $logger, FactoryInterface $stateMachineFactory)
{
$this->logger = $logger;
$this->stateMachineFactory = $stateMachineFactory;
}

Expand Down
1 change: 0 additions & 1 deletion src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<service id="bitbag_sylius_multisafepay_plugin.api_client.multisafepay_api_client" class="BitBag\SyliusMultiSafepayPlugin\ApiClient\MultiSafepayApiClient" public="true" />

<service id="bitbag_sylius_multisafepay_plugin.payment_processing.refund" class="BitBag\SyliusMultiSafepayPlugin\PaymentProcessing\RefundPaymentProcessor" public="true">
<argument type="service" id="session" />
<argument type="service" id="bitbag_sylius_multisafepay_plugin.api_client.multisafepay_api_client" />
<argument type="service" id="monolog.logger.payum" />
</service>
Expand Down

0 comments on commit 2774721

Please sign in to comment.