Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
league
/
mime-type-detection
/
src
:
OverridingExtensionToMimeTypeMap.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace League\MimeTypeDetection; class OverridingExtensionToMimeTypeMap implements ExtensionToMimeTypeMap { /** * @var ExtensionToMimeTypeMap */ private $innerMap; /** * @var string[] */ private $overrides; /** * @param array<string, string> $overrides */ public function __construct(ExtensionToMimeTypeMap $innerMap, array $overrides) { $this->innerMap = $innerMap; $this->overrides = $overrides; } public function lookupMimeType(string $extension): ?string { return $this->overrides[$extension] ?? $this->innerMap->lookupMimeType($extension); } }