MimeTypeGuesserInterface
in
Guesses the MIME type of a file.
Tags
Table of Contents
Methods
- guessMimeType() : string|null
- Guesses the MIME type of the file with the given path.
- isGuesserSupported() : bool
- Returns true if this guesser is supported.
Methods
guessMimeType()
Guesses the MIME type of the file with the given path.
public
guessMimeType(string $path) : string|null
Parameters
- $path : string
Tags
Return values
string|nullisGuesserSupported()
Returns true if this guesser is supported.
public
isGuesserSupported() : bool