You are here

public function FileMetadataManager::__construct in File metadata manager 8.2

Same name and namespace in other branches
  1. 8 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.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager service.

File

src/FileMetadataManager.php, line 85

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, StreamWrapperManagerInterface $stream_wrapper_manager) {
  $this->pluginManager = $plugin_manager;
  $this->logger = $logger;
  $this->configFactory = $config_factory;
  $this->fileSystem = $file_system;
  $this->cache = $cache_service;
  $this->streamWrapperManager = $stream_wrapper_manager;
}