MediaWiki  master
MimeMagicImproveFromExtensionHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Hook;
4 
5 use MimeAnalyzer;
6 
22  public function onMimeMagicImproveFromExtension( $mimeMagic, $ext, &$mime );
23 }
MediaWiki\Hook
Definition: ActionBeforeFormDisplayHook.php:3
MimeAnalyzer
Implements functions related to MIME types such as detection and mapping to file extension.
Definition: MimeAnalyzer.php:33
MediaWiki\Hook\MimeMagicImproveFromExtensionHook\onMimeMagicImproveFromExtension
onMimeMagicImproveFromExtension( $mimeMagic, $ext, &$mime)
Use this hook to further improve the MIME type detected by considering the file extension.
MediaWiki\Hook\MimeMagicImproveFromExtensionHook
Stable to implement.
Definition: MimeMagicImproveFromExtensionHook.php:11
$ext
if(!is_readable( $file)) $ext
Definition: router.php:48
$mime
$mime
Definition: router.php:60