Convert OutputHandler functions to a class
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 18 Mar 2018 04:03:42 +0000 (21:03 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 21 Mar 2018 04:11:32 +0000 (21:11 -0700)
commit665e9b7bf26f9eccdfe02b1a1889f70e8d105705
tree1ab305c13b456eee8af0c2cd52c200d0ee38dd5a
parent3bf240261c51e56d4321f36cf05b5e5c2f938c6c
Convert OutputHandler functions to a class

* Convert OutputHandler.php from global functions to a class.

  - wfOutputHandler → OutputHandler::handle
    (no alias, no usage outside core)
  - wfGzipHandler → OutputHandler::handleGzip
    (private, no usage outside class)
  - wfRequestExtension → OutputHandler::findUriExtension
    (private, no usage outside class)
  - wfMangleFlashPolicy → OutputHandler::mangleFlashPolicy
    (private, no usage outside class)
  - wfDoContentLength → OutputHandler::emitContentLength
    (private, no usage outside class)
  - wfHtmlValidationHandler → OutputHandler::validateAllHtml
    (private, no usage outside class)

* Add the class to autoload.php for exposure outside WebStart.
  Specifically, for use in ApiFormatPhpTest. This also removes the
  need to manually load the class because this code runs after
  Setup.php loads AutoLoader.php.

Bug: T189966
Change-Id: I27a41ec0ae0ee30aeb313a616323b967605c4055
RELEASE-NOTES-1.31
autoload.php
includes/GlobalFunctions.php
includes/OutputHandler.php
includes/WebStart.php
includes/api/ApiFormatBase.php
includes/api/ApiFormatJson.php
includes/api/ApiFormatPhp.php
tests/phpunit/includes/api/format/ApiFormatPhpTest.php