From f2bd4891e6f3eef1c000129c1cecd9798585d1a3 Mon Sep 17 00:00:00 2001 From: Mateusz Zalewski Date: Sat, 30 Nov 2019 19:32:46 +0100 Subject: [PATCH] Add missing dependency --- src/Action/Admin/RefundUnitsAction.php | 8 +++++++- src/Resources/config/services/actions.xml | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Action/Admin/RefundUnitsAction.php b/src/Action/Admin/RefundUnitsAction.php index ea8806b1..be133fc2 100644 --- a/src/Action/Admin/RefundUnitsAction.php +++ b/src/Action/Admin/RefundUnitsAction.php @@ -4,6 +4,7 @@ namespace Sylius\RefundPlugin\Action\Admin; +use Psr\Log\LoggerInterface; use Sylius\RefundPlugin\Creator\RefundUnitsCommandCreatorInterface; use Sylius\RefundPlugin\Exception\InvalidRefundAmountException; use Symfony\Component\HttpFoundation\RedirectResponse; @@ -28,16 +29,21 @@ final class RefundUnitsAction /** @var RefundUnitsCommandCreatorInterface */ private $commandCreator; + /** @var LoggerInterface */ + private $logger; + public function __construct( MessageBusInterface $commandBus, Session $session, UrlGeneratorInterface $router, - RefundUnitsCommandCreatorInterface $commandCreator + RefundUnitsCommandCreatorInterface $commandCreator, + LoggerInterface $logger ) { $this->commandBus = $commandBus; $this->session = $session; $this->router = $router; $this->commandCreator = $commandCreator; + $this->logger = $logger; } public function __invoke(Request $request): Response diff --git a/src/Resources/config/services/actions.xml b/src/Resources/config/services/actions.xml index 540db118..922b04e1 100644 --- a/src/Resources/config/services/actions.xml +++ b/src/Resources/config/services/actions.xml @@ -29,6 +29,7 @@ +