SymfonyComponentHttpFoundationFileMimeTypeFileinfoMimeTypeGuesser

Guesses the mime type using the PECL extension FileInfo

Summary

No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
File
vendorSymfonyComponentHttpFoundationFileMimeTypeFileinfoMimeTypeGuesser.php
Package
Default
Class hierarchy
SymfonyComponentHttpFoundationFileMimeTypeFileinfoMimeTypeGuesser
Implements
SymfonyComponentHttpFoundationFileMimeTypeMimeTypeGuesserInterface

Tags

author

Bernhard Schussek bschussek@gmail.com

Methods

isSupported()

isSupported() : Boolean

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

Returns

Boolean

static

Tags

None found

guess()

guess(string  $path) : string

Guesses the mime type of the file with the given path.

Parameters

string $path

The path to the file

Returns

string —

The mime type or NULL, if none could be guessed

Tags

None found