MimeTypeGuesser::__construct

public MimeTypeGuesser::__construct(StreamWrapperManagerInterface $stream_wrapper_manager)

Constructs a MimeTypeGuesser object.

Parameters

StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

File

core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 47

Class

MimeTypeGuesser
Defines a MIME type guesser that also supports stream wrapper paths.

Namespace

Drupal\Core\File\MimeType

Code

public function __construct(StreamWrapperManagerInterface $stream_wrapper_manager) {
  $this->streamWrapperManager = $stream_wrapper_manager;
}
doc_Drupal
2016-10-29 09:28:27
Comments
Leave a Comment

Please login to continue.