class MimeTypeGuesser

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

Hierarchy

File

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

Namespace

Drupal\Core\File\MimeType

Members

Name Modifiers Type Description
MimeTypeGuesser::$guessers protected property An array of arrays of registered guessers keyed by priority.
MimeTypeGuesser::$sortedGuessers protected property Holds the array of guessers sorted by priority.
MimeTypeGuesser::$streamWrapperManager protected property The stream wrapper manager.
MimeTypeGuesser::addGuesser public function Appends a MIME type guesser to the guessers chain.
MimeTypeGuesser::guess public function Guesses the mime type of the file with the given path. Overrides MimeTypeGuesserInterface::guess
MimeTypeGuesser::registerWithSymfonyGuesser public static function A helper function to register with Symfony's singleton MIME type guesser.
MimeTypeGuesser::sortGuessers protected function Sorts guessers according to priority.
MimeTypeGuesser::__construct public function Constructs a MimeTypeGuesser object.

© 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/class/MimeTypeGuesser/8.1.x