You are here

public function PurgeBase::__construct in Acquia Content Hub 8.2

PurgeBase constructor.

Parameters

\Drupal\Core\Queue\QueueFactory $queue_factory: The queue factory.

\Drupal\Core\Logger\LoggerChannelInterface $logger_channel: The logger factory.

1 call to PurgeBase::__construct()
Purge::__construct in modules/acquia_contenthub_publisher/src/EventSubscriber/HandleWebhook/Purge.php
Purge constructor.
1 method overrides PurgeBase::__construct()
Purge::__construct in modules/acquia_contenthub_publisher/src/EventSubscriber/HandleWebhook/Purge.php
Purge constructor.

File

src/EventSubscriber/HandleWebhook/PurgeBase.php, line 49

Class

PurgeBase
Class PurgeBase.

Namespace

Drupal\acquia_contenthub\EventSubscriber\HandleWebhook

Code

public function __construct(QueueFactory $queue_factory, LoggerChannelInterface $logger_channel) {
  $this->queue = $queue_factory
    ->get($this
    ->getQueueName());
  $this->logger = $logger_channel;
}