You are here

public function LicenseFileManager::__construct in Commerce File 8.2

Constructs a new LicenseFileManager object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\commerce_file\DownloadLoggerInterface $download_logger: The download logger.

File

src/LicenseFileManager.php, line 71

Class

LicenseFileManager
Provides a service for managing licensed files.

Namespace

Drupal\commerce_file

Code

public function __construct(AccountInterface $current_user, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, DownloadLoggerInterface $download_logger) {
  $this->currentUser = $current_user;
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->downloadLogger = $download_logger;
}