wiki.techinc.nl/includes/preferences
Tim Starling f270881ca2 Deprecate Parser::getFreshParser()
Following up on the comment I made at Ibbc1423166f4804a5122, make Parser
instance management a ParserFactory responsibility. It is weird for
Parser to have a ParserFactory proxy aspect.

* Add ParserFactory::getMainInstance(), which is equivalent to the old
  MediaWikiServices::getParser() and $wgParser.
* Add ParserFactory::getInstance(), which is equivalent to
  $wgParser->getFreshInstance(), returning the main instance if it is
  free, or a new instance otherwise. The naming is supposed to encourage
  it as the default way to get a parser, which will help with the linked
  bug.
* Deprecate Parser::getFreshParser() and migrate all core callers.

I left the entry in ServiceWiring.php so that it's not immediately
necessary to migrate ObjectFactory specs that ask for Parser.

Bug: T310948
Change-Id: I762b191e978c2d1bbc9f332c9cfa047888ce2e67
2022-07-05 14:09:36 +10:00
..
Hook Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
DefaultPreferencesFactory.php Merge "Bury the reset preferences link" 2022-05-13 22:53:52 +00:00
Filter.php
IntvalFilter.php
MultiTitleFilter.php Hard deprecate TitleFactory::newFromIDs and Title::newFromIDs 2021-11-29 14:23:26 -05:00
MultiUsernameFilter.php Use CentralIdLookup service instead of static factory 2021-07-26 07:00:53 -07:00
PreferencesFactory.php Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00
SignatureValidator.php Deprecate Parser::getFreshParser() 2022-07-05 14:09:36 +10:00
SignatureValidatorFactory.php Deprecate Parser::getFreshParser() 2022-07-05 14:09:36 +10:00
TimezoneFilter.php Split TimeCorrection parser into separate class 2021-05-07 10:43:09 -07:00