You are here

public function FileMetadataManager::__construct in File metadata manager 8

Same name and namespace in other branches
  1. 8.2 src/FileMetadataManager.php \Drupal\file_mdm\FileMetadataManager::__construct()

Constructs a FileMetadataManager object.

Parameters

\Drupal\file_mdm\Plugin\FileMetadataPluginManager $plugin_manager: The FileMetadata plugin manager.

\Psr\Log\LoggerInterface $logger: The file_mdm logger.

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

\Drupal\Core\File\FileSystemInterface $file_system: The file system service.

\Drupal\Core\Cache\CacheBackendInterface $cache_service: The cache service.

File

src/FileMetadataManager.php, line 75

Class

FileMetadataManager
A service class to provide file metadata.

Namespace

Drupal\file_mdm

Code

public function __construct(FileMetadataPluginManager $plugin_manager, LoggerInterface $logger, ConfigFactoryInterface $config_factory, FileSystemInterface $file_system, CacheBackendInterface $cache_service) {
  $this->pluginManager = $plugin_manager;
  $this->logger = $logger;
  $this->configFactory = $config_factory;
  $this->fileSystem = $file_system;
  $this->cache = $cache_service;
}