21 class Reader extends \Magento\Framework\Config\Reader\Filesystem
29 '/config/system/tab' =>
'id',
30 '/config/system/section' =>
'id',
31 '/config/system/section(/group)+' =>
'id',
32 '/config/system/section(/group)+/field' =>
'id',
33 '/config/system/section(/group)+/field/depends/field' =>
'id',
34 '/config/system/section(/group)+/field/options/option' =>
'label',
56 \
Magento\Framework\
Config\FileResolverInterface $fileResolver,
64 $defaultScope =
'global' 99 }
catch (\
Magento\Framework\Config\Dom\ValidationException $e) {
100 throw new LocalizedException(
102 'The XML in file "%1" is invalid:' .
"\n%2\nVerify the XML and try again.",
103 [$key, $e->getMessage()]
109 if ($this->validationState->isValidationRequired()) {
111 if ($configMerger && !$configMerger->validate($this->_schemaFile,
$errors)) {
113 throw new LocalizedException(
121 $output = $this->_converter->convert($configMerger->getDom());
137 $document = new \DOMDocument();
140 }
catch (\Exception $e) {
141 throw new \Magento\Framework\Config\Dom\ValidationException($e->getMessage());
143 $this->compiler->compile($document->documentElement, $object, $object);
145 return $document->saveXML();
__construct(\Magento\Framework\Config\FileResolverInterface $fileResolver, Converter $converter, \Magento\Config\Model\Config\SchemaLocator $schemaLocator, \Magento\Framework\Config\ValidationStateInterface $validationState, CompilerInterface $compiler, $fileName='system.xml', $idAttributes=[], $domDocumentClass=\Magento\Framework\Config\Dom::class, $defaultScope='global')
processingDocument($content)
_createConfigMerger($mergerClass, $initialContents)