Move MimeMagic code to libs/mime/MimeAnalyzer.php
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 22 Sep 2016 04:57:13 +0000 (21:57 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 15 Oct 2016 00:05:16 +0000 (00:05 +0000)
commit0d87d67d61520d34064f2eaae0f20b8ef11d4c59
tree4ef4334a71e1c1c1c27c4bffe5b8e8f78d477056
parenta946285e4d1b40ddb9374ae791a4aeb159eb7bb1
Move MimeMagic code to libs/mime/MimeAnalyzer.php

* The later resides in /libs with related files.
* Explose MimeAnalyzer as a service.
* Keep MimeMagic::singleton() as a b/c alias.
* MimeMagic::applyDefaultConfig() will bootstrap the service
  with all of the old config, extension hook handler, and
  detector command shell-out behavior.

Change-Id: Ie2695a52e7a3bcfda9f7fa83659a9ff31b372bc3
19 files changed:
autoload.php
includes/Defines.php
includes/MediaWikiServices.php
includes/MimeMagic.php
includes/ServiceWiring.php
includes/libs/IEContentAnalyzer.php [deleted file]
includes/libs/XmlTypeCheck.php [deleted file]
includes/libs/mime/IEContentAnalyzer.php [new file with mode: 0644]
includes/libs/mime/MimeAnalyzer.php [new file with mode: 0644]
includes/libs/mime/XmlTypeCheck.php [new file with mode: 0644]
includes/libs/mime/defines.php [new file with mode: 0644]
includes/libs/mime/mime.info [new file with mode: 0644]
includes/libs/mime/mime.types [new file with mode: 0644]
includes/mime.info [deleted file]
includes/mime.types [deleted file]
maintenance/dev/includes/router.php
tests/phpunit/includes/MediaWikiServicesTest.php
tests/phpunit/includes/MimeMagicTest.php [deleted file]
tests/phpunit/includes/libs/mime/MimeAnalyzerTest.php [new file with mode: 0644]