You are here

public function S3FileSchemeHandler::__construct in Acquia Content Hub 8.2

S3FileSchemeHandler constructor.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin id.

mixed $plugin_definition: The definition.

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

\Drupal\Core\Config\Config $config: The s3fs.settings configuration object.

\Drupal\acquia_contenthub_s3\S3FileMapper $s3_file_mapper: The s3 file mapper service.

Overrides PluginBase::__construct

File

modules/acquia_contenthub_s3/src/Plugin/FileSchemeHandler/S3FileSchemeHandler.php, line 63

Class

S3FileSchemeHandler
S3 file scheme handler.

Namespace

Drupal\acquia_contenthub_s3\Plugin\FileSchemeHandler

Code

public function __construct(array $configuration, string $plugin_id, $plugin_definition, StreamWrapperManagerInterface $stream_wrapper_manager, Config $config, S3FileMapper $s3_file_mapper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->s3fsConfig = $config;
  $this->s3FileMapper = $s3_file_mapper;
}