function MimeTypeGuesser::__construct
Constructs a MimeTypeGuesser object.
Parameters
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.
File
-
core/
lib/ Drupal/ Core/ File/ MimeType/ MimeTypeGuesser.php, line 48
Class
- MimeTypeGuesser
- Defines a MIME type guesser that also supports stream wrapper paths.
Namespace
Drupal\Core\File\MimeTypeCode
public function __construct(StreamWrapperManagerInterface $stream_wrapper_manager) {
$this->streamWrapperManager = $stream_wrapper_manager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.