Manual:$wgParser

Description
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
$wgParser is called in the following file: includes/Setup.php with the following code: $wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) );

StubObject is defined in the following file: includes/StubObject.php

wgParserConf is defined here: includes/DefaultSettings.php

with the code:

$wgParserConf = array('class' => 'Parser',);