Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
XmlReader.php
Go to the documentation of this file.
1 <?php
7 
11 class XmlReader extends \Magento\Framework\Config\Reader\Filesystem
12 {
18  protected $_idAttributes = [
19  '/config/topic' => 'name'
20  ];
21 
32  public function __construct(
33  \Magento\Framework\Config\FileResolverInterface $fileResolver,
34  XmlReader\Converter $converter,
35  XmlReader\SchemaLocator $schemaLocator,
36  \Magento\Framework\Config\ValidationStateInterface $validationState,
37  $fileName = 'communication.xml',
38  $idAttributes = [],
39  $domDocumentClass = \Magento\Framework\Config\Dom::class,
40  $defaultScope = 'global'
41  ) {
42  parent::__construct(
43  $fileResolver,
44  $converter,
45  $schemaLocator,
47  $fileName,
48  $idAttributes,
49  $domDocumentClass,
50  $defaultScope
51  );
52  }
53 }
$fileName
Definition: translate.phtml:15
__construct(\Magento\Framework\Config\FileResolverInterface $fileResolver, XmlReader\Converter $converter, XmlReader\SchemaLocator $schemaLocator, \Magento\Framework\Config\ValidationStateInterface $validationState, $fileName='communication.xml', $idAttributes=[], $domDocumentClass=\Magento\Framework\Config\Dom::class, $defaultScope='global')
Definition: XmlReader.php:32