From ba831e5e3da14848663772af5e5db3e6eb4617ea Mon Sep 17 00:00:00 2001 From: janpalen Date: Wed, 31 Jul 2024 12:34:17 +0200 Subject: [PATCH] OP-448 - Remove session service --- .github/workflows/build.yml | 2 +- composer.json | 1 - src/Action/NotifyAction.php | 7 ++++++- src/Resources/config/services.xml | 1 - 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f170096..4c8f81c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -140,7 +140,7 @@ jobs: name: Prepare test application assets run: | (cd tests/Application && bin/console assets:install public -vvv) - (cd tests/Application && yarn add encore dev) + (cd tests/Application && yarn encore dev) - name: Prepare test application cache diff --git a/composer.json b/composer.json index a51fbe0..43793dd 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,6 @@ "friends-of-behat/suite-settings-extension": "^1.0", "friends-of-behat/symfony-extension": "^2.1", "friends-of-behat/variadic-extension": "^1.3", - "friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev", "lakion/mink-debug-extension": "^2.0.0", "phpspec/phpspec": "^7.0", "phpstan/extension-installer": "^1.0", diff --git a/src/Action/NotifyAction.php b/src/Action/NotifyAction.php index a918431..a5701f5 100644 --- a/src/Action/NotifyAction.php +++ b/src/Action/NotifyAction.php @@ -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; @@ -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; } diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml index 9a6f89c..3978d56 100644 --- a/src/Resources/config/services.xml +++ b/src/Resources/config/services.xml @@ -11,7 +11,6 @@ -