MimeTypeDetector
final class MimeTypeDetector implements MimeTypeDetectorInterface (View source)
Detects a file's media type from server-visible content rather than client metadata.
Methods
Details
detect
MimeType
detect(string $path)
Detects one normalized media type through the fileinfo extension