MimeTypeCompatibilityTypeGuesser
final readonly class \
Map text/plain to concrete mime types, based on their supplied file extension.
This mapping is only allowed for text/plain
Internal
Table of Contents
Methods
- __construct() : mixed
- getMimeTypeCompatibilityList() : array
- guessMimeType() : void
Methods
__construct()
public
__construct() : mixed
getMimeTypeCompatibilityList()
public
getMimeTypeCompatibilityList() : array
Return values
arrayguessMimeType()
public
guessMimeType(array &$parameters, SplFileInfo $fileInfo) : void
Parameters
- $parameters : array
- $fileInfo : SplFileInfo