Manual:$wgParser/en

Description
This global variable is deprecated. Use MediaWikiServices::getInstance->getParser instead (T160811).

The Parser object is responsible for parsing the tags and wikitext contained in wiki pages. Parser extensions hooks are also registered in the Parser object.

Mode of Operation
is called in  with the following code:

StubObject is defined in.

wgParserConf is defined in  with the following code:

Replacement
New code should use dependency injection instead. The parser is now available in the service locator under the  service. Existing code that has not yet been changed to use dependency injection can call the service locator directly: