final class MimeTypeDetector implements MimeTypeDetectorInterface (View source)

Detects a file's media type from server-visible content rather than client metadata.

Methods

detect(string $path)

Detects one normalized media type through the fileinfo extension

Details

detect

MimeType detect(string $path)

Detects one normalized media type through the fileinfo extension

Parameters

string $path

Return Value

MimeType