public function ImportUpdateAssets::__construct in Acquia Content Hub 8.2
ImportUpdateAssets constructor.
Parameters
\Drupal\Core\Queue\QueueFactory $queue: The queue factory.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: Event dispatcher.
\Drupal\acquia_contenthub_subscriber\SubscriberTracker $tracker: The subscription tracker.
\Drupal\Core\Logger\LoggerChannelInterface $logger_channel: The logger channel factory.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
File
- modules/
acquia_contenthub_subscriber/ src/ EventSubscriber/ HandleWebhook/ ImportUpdateAssets.php, line 79
Class
- ImportUpdateAssets
- Imports and updates assets.
Namespace
Drupal\acquia_contenthub_subscriber\EventSubscriber\HandleWebhookCode
public function __construct(QueueFactory $queue, EventDispatcherInterface $dispatcher, SubscriberTracker $tracker, LoggerChannelInterface $logger_channel, ConfigFactoryInterface $config_factory) {
$this->queue = $queue
->get('acquia_contenthub_subscriber_import');
$this->dispatcher = $dispatcher;
$this->tracker = $tracker;
$this->channel = $logger_channel;
$this->config = $config_factory
->get('acquia_contenthub.admin_settings');
}