12 use Psr\Log\LoggerInterface;
29 private $synchronizer;
50 LoggerInterface $logger,
53 $this->typeId = $typeId;
54 $this->synchronizer = $synchronizer;
56 $this->appConfig = $appConfig;
73 $actions = $this->synchronizer->getActionsByType($this->typeId);
77 foreach ($actions as $action) {
78 $items[$action->getProductId()] = [
79 'added_at' => $action->getAddedAt(),
80 'product_id' => $action->getProductId(),
const ALLOW_SYNC_WITH_BACKEND_PATH
__construct(Synchronizer $synchronizer, $typeId, LoggerInterface $logger, Config $appConfig)