\League\MimeTypeDetectionExtensionMimeTypeDetector

Summary

Methods
Properties
Constants
__construct()
detectMimeType()
detectMimeTypeFromPath()
detectMimeTypeFromFile()
detectMimeTypeFromBuffer()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$extensions
N/A

Properties

Methods

__construct()

__construct(\League\MimeTypeDetection\ExtensionToMimeTypeMap  $extensions = null) : mixed

Parameters

\League\MimeTypeDetection\ExtensionToMimeTypeMap $extensions

Returns

mixed —

detectMimeType()

detectMimeType(string  $path, mixed  $contents) : ?string

Parameters

string $path
mixed $contents

Returns

?string —

detectMimeTypeFromPath()

detectMimeTypeFromPath(string  $path) : ?string

Parameters

string $path

Returns

?string —

detectMimeTypeFromFile()

detectMimeTypeFromFile(string  $path) : ?string

Parameters

string $path

Returns

?string —

detectMimeTypeFromBuffer()

detectMimeTypeFromBuffer(string  $contents) : ?string

Parameters

string $contents

Returns

?string —