Deprecate additional public methods of Parser
authorC. Scott Ananian <cscott@cscott.net>
Tue, 29 Oct 2019 07:34:25 +0000 (03:34 -0400)
committerJames D. Forrester <jforrester@wikimedia.org>
Wed, 30 Oct 2019 21:35:28 +0000 (14:35 -0700)
commit13832025a46df3e0edd658dfb756159c2c5ac722
treee741aa219e39b008d458221b7d2cc7d931196803
parenta997803cd6cf97da234e6d5b363e135806a7414b
Deprecate additional public methods of Parser

Affected:
Parser::armorLinks()
Parser::makeKnownLinkHolder()
Parser::getImageParams()
Parser::parseLinkParameter()
Parser::stripAltText()

It wasn't obvious there was a better name for these, so just rename
them with a `...Private` suffix and deprecate the old names.  When
the deprecated public methods are removed we'll rename the private
methods to remove the `...Private` suffix again.

Code search:
https://codesearch.wmflabs.org/deployed/?q=armorLinks%7CmakeKnownLinkHolder%7CgetImageParams%7CparseLinkParameter%7CstripAltText&i=nope&files=&repos=

Bug: T236810
Change-Id: I44458490fa86abd0ead048a4c94021da6be333f0
(cherry picked from commit 736b6b27f3dc1e9f7b4facc55f08dbc28da68827)
includes/parser/Parser.php
tests/phpunit/includes/ExtraParserTest.php