Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface::guess
Guesses the mime type of the file with the given path.
Signature
public function guess(string
$path )
Parameters
$path
— string- The path to the file
Returns
- string
- The mime type or NULL, if none could be guessed
Errors/Exceptions
-
FileNotFoundException
- If the file does not exist
-
AccessDeniedException
- If the file could not be read