diff --git a/config/services.yaml b/config/services.yaml index 59a25e1..ac3c101 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' + - '@mailer' + - '@doctrine.orm.entity_manager' - '@router' Webgriffe\SyliusBackInStockNotificationPlugin\Controller\SubscriptionController: 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