Guesses the mime type of a file
@author Bernhard Schussek <bschussek@gmail.com>
Expanded class hierarchy of MimeTypeGuesserInterface
All classes that implement MimeTypeGuesserInterface
interface MimeTypeGuesserInterface {
/**
* Guesses the mime type of the file with the given path.
*
* @param string $path The path to the file
*
* @return string The mime type or NULL, if none could be guessed
*
* @throws FileNotFoundException If the file does not exist
* @throws AccessDeniedException If the file could not be read
*/
public function guess($path);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MimeTypeGuesserInterface:: |
public | function | Guesses the mime type of the file with the given path. | 3 |