You are here

public function S3fsFileService::__construct in S3 File System 8.3

Same name and namespace in other branches
  1. 4.0.x src/S3fsFileService.php \Drupal\s3fs\S3fsFileService::__construct()

S3fsFileService constructor.

Parameters

\Drupal\Core\File\FileSystemInterface $decorated: FileSystem Service being decorated.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: StreamWrapper manager service.

\Psr\Log\LoggerInterface $logger: Logging service.

\Drupal\s3fs\S3fsServiceInterface $s3fs: S3fs Service.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config Factory service.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: Module Handler service.

object $mimeGuesser: Mime type guesser service. Expected to implement \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface or \Symfony\Component\Mime\MimeTypeGuesserInterface.

File

src/S3fsFileService.php, line 104

Class

S3fsFileService
Provides helpers to operate on files and stream wrappers.

Namespace

Drupal\s3fs

Code

public function __construct(FileSystemInterface $decorated, StreamWrapperManagerInterface $stream_wrapper_manager, LoggerInterface $logger, S3fsServiceInterface $s3fs, ConfigFactoryInterface $configFactory, ModuleHandlerInterface $moduleHandler, $mimeGuesser) {
  $this->decorated = $decorated;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->logger = $logger;
  $this->s3fs = $s3fs;
  $this->moduleHandler = $moduleHandler;
  $this->mimeGuesser = $mimeGuesser;
  $this->configFactory = $configFactory;
}