fixes
This commit is contained in:
parent
fc829ce96e
commit
4112e4d29f
@ -26,13 +26,13 @@ class SlackNotifySubscriber implements EventSubscriberInterface
|
|||||||
private $warehouseRepository;
|
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->slackWebhookUrl = $slackWebhookUrl;
|
||||||
$this->productRepository = $productRepository;
|
$this->productRepository = $productRepository;
|
||||||
$this->stockRepository = $stockRepository;
|
$this->stockRepository = $stockRepository;
|
||||||
$this->warehouseRepository = $warehouseRepository;
|
$this->warehouseRepository = $warehouseRepository;
|
||||||
$this->logger = $logger;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getSubscribedEvents(): array
|
public static function getSubscribedEvents(): array
|
||||||
@ -70,7 +70,7 @@ class SlackNotifySubscriber implements EventSubscriberInterface
|
|||||||
$warehouse = $this->getWarehouseByGtin($item['gtin']);
|
$warehouse = $this->getWarehouseByGtin($item['gtin']);
|
||||||
|
|
||||||
if (!$warehouse) {
|
if (!$warehouse) {
|
||||||
$this->logger->error('Warehouse not found for GTIN: ' . $item['gtin']);
|
# $this->logger->error('Warehouse not found for GTIN: ' . $item['gtin']);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user