Namespace

Symfony\Component\HttpFoundation\File\MimeType

ContentTypeMimeTypeGuesser Guesses the mime type using the PHP function mimecontenttype().
FileBinaryMimeTypeGuesser Guesses the mime type with the binary "file" (only available on *nix)
FileinfoMimeTypeGuesser Guesses the mime type using the PECL extension FileInfo
MimeTypeGuesser A singleton mime type guesser.

Interfaces

MimeTypeGuesserInterface Guesses the mime type of a file