Skip to content

Commit

Permalink
Add missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Nov 30, 2019
1 parent 2b89495 commit ad970be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Action/Admin/RefundUnitsAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Sylius\RefundPlugin\Action\Admin;

use Psr\Log\LoggerInterface;
use Sylius\RefundPlugin\Creator\RefundUnitsCommandCreatorInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -27,16 +28,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
Expand Down
1 change: 1 addition & 0 deletions src/Resources/config/services/actions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<argument type="service" id="session" />
<argument type="service" id="router" />
<argument type="service" id="Sylius\RefundPlugin\Creator\RefundUnitsCommandCreator" />
<argument type="service" id="monolog.logger" />
</service>

<service id="Sylius\RefundPlugin\Action\CompleteRefundPaymentAction">
Expand Down

0 comments on commit ad970be

Please sign in to comment.