public function SophronMimeTypeGuesser::__construct in Sophron 8
Same name in this branch
- 8 sophron_guesser/src/SophronMimeTypeGuesser.php \Drupal\sophron_guesser\SophronMimeTypeGuesser::__construct()
- 8 sophron_guesser/src/ProxyClass/SophronMimeTypeGuesser.php \Drupal\sophron_guesser\ProxyClass\SophronMimeTypeGuesser::__construct()
Constructs a SophronMimeTypeGuesser object.
Parameters
\Drupal\sophron\MimeMapManagerInterface $mime_map_manager: The MIME map manager service.
\Drupal\Core\File\FileSystemInterface $file_system: The file system service.
File
- sophron_guesser/
src/ SophronMimeTypeGuesser.php, line 36
Class
- SophronMimeTypeGuesser
- Makes possible to guess the MIME type of a file using its extension.
Namespace
Drupal\sophron_guesserCode
public function __construct(MimeMapManagerInterface $mime_map_manager, FileSystemInterface $file_system) {
$this->mimeMapManager = $mime_map_manager;
$this->fileSystem = $file_system;
}