wiki.techinc.nl/includes/parser
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
Parsoid Protect against passing unsupported content models to Parsoid. 2022-06-30 14:54:42 +00:00
BlockLevelPass.php
CacheTime.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
CoreMagicVariables.php Add {{=}} as a built-in magic word 2022-05-20 13:08:20 -04:00
CoreParserFunctions.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
CoreTagHooks.php Deprecate Parser::getFreshParser() 2022-07-05 14:09:36 +10:00
DateFormatter.php
DateFormatterFactory.php
LinkHolderArray.php Clean up LinkHolderArray::__construct 2022-06-18 10:33:34 +02:00
MWTidy.php
Parser.php Deprecate Parser::getFreshParser() 2022-07-05 14:09:36 +10:00
ParserCache.php ParserCache: ensure we know a revision ID 2022-06-27 13:29:25 +00:00
ParserCacheFactory.php ParserCache: always use JSON 2022-06-07 15:19:45 +02:00
ParserCacheMetadata.php
ParserFactory.php Deprecate Parser::getFreshParser() 2022-07-05 14:09:36 +10:00
ParserObserver.php parser: Avoid pushing the whole content to ParserObserver debug log 2022-05-18 22:07:57 +00:00
ParserOptions.php ParserOptions: Add fallback to enableMagicLinks 2022-06-03 14:43:16 +00:00
ParserOutput.php Merge "Use the same tooltip for transcluded sections as normal ones" 2022-06-22 18:31:43 +00:00
ParserOutputFlags.php
PPCustomFrame_Hash.php
PPDPart_Hash.php
PPDStack_Hash.php
PPDStackElement_Hash.php
PPFrame.php
PPFrame_Hash.php
PPNode.php
PPNode_Hash_Array.php
PPNode_Hash_Attr.php
PPNode_Hash_Text.php
PPNode_Hash_Tree.php
PPTemplateFrame_Hash.php
Preprocessor.php
Preprocessor_Hash.php Use str_starts_with/str_ends_with 2022-05-02 10:59:58 +03:00
RemexRemoveTagHandler.php
RemexStripTagHandler.php
RevisionOutputCache.php
Sanitizer.php Do minor code cleanup 2022-06-24 13:52:42 +02:00
StripState.php