class FileinfoMimeTypeGuesser implements MimeTypeGuesserInterface
Guesses the mime type using the PECL extension FileInfo.
__construct(string $magicFile = null) Constructor. | ||
static bool | isSupported() Returns whether this guesser is supported on the current OS/PHP setup. | |
string | guess(string $path) Guesses the mime type of the file with the given path. |
Constructor.
Returns whether this guesser is supported on the current OS/PHP setup.
Guesses the mime type of the file with the given path.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.html