You are here

public static function FileinfoMimeTypeGuesser::isSupported in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/File/MimeType/FileinfoMimeTypeGuesser.php \Symfony\Component\HttpFoundation\File\MimeType\FileinfoMimeTypeGuesser::isSupported()

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

Return value

bool

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

File

vendor/symfony/http-foundation/File/MimeType/FileinfoMimeTypeGuesser.php, line 43

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');
}