public function 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\MimeTypeCode
public function __construct(StreamWrapperManagerInterface $stream_wrapper_manager) { $this->streamWrapperManager = $stream_wrapper_manager; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!File!MimeType!MimeTypeGuesser.php/function/MimeTypeGuesser::__construct/8.1.x