From 4112e4d29f558a797a0e3ca291dc02e9bf4ca06a Mon Sep 17 00:00:00 2001 From: Marko <52066939+HeX87@users.noreply.github.com> Date: Thu, 9 Jan 2025 19:07:12 +0100 Subject: [PATCH] fixes --- src/EventSubscriber/SlackNotifySubscriber.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EventSubscriber/SlackNotifySubscriber.php b/src/EventSubscriber/SlackNotifySubscriber.php index 53bab9a..b248f8a 100644 --- a/src/EventSubscriber/SlackNotifySubscriber.php +++ b/src/EventSubscriber/SlackNotifySubscriber.php @@ -26,13 +26,13 @@ class SlackNotifySubscriber implements EventSubscriberInterface private $warehouseRepository; - public function __construct(string $slackWebhookUrl, ProductRepository $productRepository, StockRepository $stockRepository, WarehouseRepository $warehouseRepository, LoggerInterface $logger) + public function __construct(string $slackWebhookUrl, ProductRepository $productRepository, StockRepository $stockRepository, WarehouseRepository $warehouseRepository) { $this->slackWebhookUrl = $slackWebhookUrl; $this->productRepository = $productRepository; $this->stockRepository = $stockRepository; $this->warehouseRepository = $warehouseRepository; - $this->logger = $logger; + } public static function getSubscribedEvents(): array @@ -70,7 +70,7 @@ class SlackNotifySubscriber implements EventSubscriberInterface $warehouse = $this->getWarehouseByGtin($item['gtin']); if (!$warehouse) { - $this->logger->error('Warehouse not found for GTIN: ' . $item['gtin']); + # $this->logger->error('Warehouse not found for GTIN: ' . $item['gtin']); continue; }