|
MediaWiki master
|
XmlLoader. More...
Public Member Functions | |
| __construct (private readonly LoggerInterface $logger,) | |
| Initializes the XmlLoader with a logger. | |
| load (string $filePath, string $context='', bool $allowMissing=false) | |
| Loads an XML file into a DOMDocument instance. | |
XmlLoader.
Provides methods for loading and parsing XML files into DOMDocument.
Definition at line 21 of file XmlLoader.php.
| Wikimedia\Leximorph\Util\XmlLoader::__construct | ( | private readonly LoggerInterface | $logger | ) |
| Wikimedia\Leximorph\Util\XmlLoader::load | ( | string | $filePath, |
| string | $context = '', | ||
| bool | $allowMissing = false ) |
Loads an XML file into a DOMDocument instance.
| string | $filePath | The path to the XML file. |
| string | $context | A short string to include in log messages. |
| bool | $allowMissing | If true, suppress error logging for missing/unreadable files. |
Definition at line 43 of file XmlLoader.php.