Manual:ParserFactory.php
Appearance
| MediaWiki file: ParserFactory.php | |
|---|---|
| Location: | includes/parser/ (includes/Parser/ in 1.46 or later) |
| Source code: | master • 1.45.3 • 1.44.5 • 1.43.8 |
| Classes: | MediaWiki\Parser\ParserFactory |
Key methods
[edit]- create() - creates a fresh new Parser object, with constructor properties set to their defaults. Other variables you might need such as ParserOptions must be set explicitly.
- getInstance() - get the main shared Parser instance, or if it is locked, get a new instance.