public static function FileinfoMimeTypeGuesser::isSupported

Returns whether this guesser is supported on the current OS/PHP setup

Return value

Boolean

2 calls to FileinfoMimeTypeGuesser::isSupported()
FileinfoMimeTypeGuesser::guess in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php
Guesses the mime type of the file with the given path.
MimeTypeGuesser::__construct in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php
Registers all natively provided mime type guessers

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php, line 29

Class

FileinfoMimeTypeGuesser
Guesses the mime type using the PECL extension FileInfo

Namespace

Symfony\Component\HttpFoundation\File\MimeType

Code

public static function isSupported() {
  return function_exists('finfo_open');
}