Also I wish it was possible to extend (and perhaps to define) classes via variable
values:
class $myParser extends $wgParserConf['class'] {
...
}
$wgParserConf['class'] = $myParser;
Such way, multiple extensions could nest (override) default class. Even monkey patching is
not so much needed then.
Should probably be possible via eval(), however eval() is a hacky way.
Perhaps a great idea for PHP 5.5.
Dmitriy