|
|
|
|
@ -337,6 +337,20 @@ class RepairMimeTypes implements IRepairStep {
|
|
|
|
|
return $this->updateMimetypes($updatedMimetypes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @throws Exception
|
|
|
|
|
* @since 32.0.0
|
|
|
|
|
*/
|
|
|
|
|
private function introduceMusicxmlType(): IResult|int|null {
|
|
|
|
|
'mxl' => 'application/vnd.recordare.musicxml',
|
|
|
|
|
'musicxml' => 'application/vnd.recordare.musicxml+xml',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
return $this->updateMimetypes($updatedMimetypes);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Check if there are any migrations available
|
|
|
|
|
*
|
|
|
|
|
@ -447,6 +461,10 @@ class RepairMimeTypes implements IRepairStep {
|
|
|
|
|
$out->info('Fixed zst mime type');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (version_compare($mimeTypeVersion, '32.0.0.0', '<') && $this->introduceMusicxmlType()) {
|
|
|
|
|
$out->info('Fixed musicxml mime type');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!$this->dryRun) {
|
|
|
|
|
$this->appConfig->setValueString('files', 'mimetype_version', $serverVersion);
|
|
|
|
|
}
|
|
|
|
|
|