From fa34d548c362e98c2dccec91dee42f1403fdab14 Mon Sep 17 00:00:00 2001 From: Maxime Date: Thu, 19 Mar 2026 09:16:34 +0100 Subject: [PATCH 1/3] Add argument in the service to run the command --- config/services.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/services.yaml b/config/services.yaml index 59a25e1..e3feab7 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -6,6 +6,8 @@ services: - '@sylius.email_sender' - '@sylius.checker.inventory.availability' - '@webgriffe.repository.back_in_stock_notification_subscription' + - '@doctrine.orm.entity_manager' + - '@mailer' - '@router' Webgriffe\SyliusBackInStockNotificationPlugin\Controller\SubscriptionController: From 860b0e14545139a912191fb4bb1ad42f48089f07 Mon Sep 17 00:00:00 2001 From: Maxime Date: Thu, 19 Mar 2026 09:28:08 +0100 Subject: [PATCH 2/3] Invert the arguments --- config/services.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/services.yaml b/config/services.yaml index e3feab7..ac3c101 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -6,8 +6,8 @@ services: - '@sylius.email_sender' - '@sylius.checker.inventory.availability' - '@webgriffe.repository.back_in_stock_notification_subscription' - - '@doctrine.orm.entity_manager' - '@mailer' + - '@doctrine.orm.entity_manager' - '@router' Webgriffe\SyliusBackInStockNotificationPlugin\Controller\SubscriptionController: From b4e0db9401ffd5f4736736a67916c950f7615b6d Mon Sep 17 00:00:00 2001 From: Maxime Date: Thu, 19 Mar 2026 09:40:50 +0100 Subject: [PATCH 3/3] Remove useless argument in the construct --- src/Command/AlertCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/AlertCommand.php b/src/Command/AlertCommand.php index 40b373a..3cc5e1d 100644 --- a/src/Command/AlertCommand.php +++ b/src/Command/AlertCommand.php @@ -36,7 +36,7 @@ public function __construct( private readonly EntityManagerInterface $entityManager, private readonly RouterInterface $router, ) { - parent::__construct($name); + parent::__construct(); } protected function configure(): void