add default mime

This commit is contained in:
Dennis Eichhorn 2020-07-29 20:56:38 +02:00
parent 86d3c10b05
commit 36c8d6ac5d

View File

@ -1019,4 +1019,14 @@ abstract class MimeType extends Enum
public const M_ZIRZ = 'application/vnd.zul';
public const M_ZMM = 'application/vnd.handheld-entertainment+xml';
public const M_123 = 'application/vnd.lotus-1-2-3';
/** {@inheritdoc} */
public static function getByName(string $name)
{
if (!self::isValidName($name)) {
return 'application/octet-stream';
}
return \constant('self::' . $name);
}
}