You are here

public function AssetRefreshManager::__construct in Media: Acquia DAM 8

AssetRefreshManager constructor.

Parameters

\Drupal\media_acquiadam\AcquiadamInterface $acquiadam: The Acquiadam Service.

\Drupal\Core\State\StateInterface $state: The Drupal State Service.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The Logger Factory Service.

\Drupal\Core\Queue\QueueFactory $queue_factory: The Queue Factory Service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The EntityTypeManager service.

\Drupal\Component\Datetime\TimeInterface $time: The Drupal DateTime Service.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/Service/AssetRefreshManager.php, line 133

Class

AssetRefreshManager
Class AssetRefreshManager.

Namespace

Drupal\media_acquiadam\Service

Code

public function __construct(AcquiadamInterface $acquiadam, StateInterface $state, LoggerChannelFactoryInterface $logger_factory, QueueFactory $queue_factory, EntityTypeManagerInterface $entity_type_manager, TimeInterface $time) {
  $this->acquiadam = $acquiadam;
  $this->state = $state;
  $this->logger = $logger_factory
    ->get('media_acquiadam');
  $this->queue = $queue_factory
    ->get($this
    ->getQueueName());
  $this->mediaStorage = $entity_type_manager
    ->getStorage('media');
  $this->time = $time;
}