Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Reader.php
Go to the documentation of this file.
1 <?php
9 
10 class Reader extends \Magento\Framework\Config\Reader\Filesystem
11 {
17  protected $_idAttributes = ['/config/event' => 'name', '/config/event/observer' => 'name'];
18 
29  public function __construct(
30  \Magento\Framework\Config\FileResolverInterface $fileResolver,
31  \Magento\Framework\Event\Config\Converter $converter,
32  \Magento\Framework\Event\Config\SchemaLocator $schemaLocator,
33  \Magento\Framework\Config\ValidationStateInterface $validationState,
34  $fileName = 'events.xml',
35  $idAttributes = [],
36  $domDocumentClass = \Magento\Framework\Config\Dom::class,
37  $defaultScope = 'global'
38  ) {
39  parent::__construct(
40  $fileResolver,
41  $converter,
42  $schemaLocator,
44  $fileName,
45  $idAttributes,
46  $domDocumentClass,
47  $defaultScope
48  );
49  }
50 }
__construct(\Magento\Framework\Config\FileResolverInterface $fileResolver, \Magento\Framework\Event\Config\Converter $converter, \Magento\Framework\Event\Config\SchemaLocator $schemaLocator, \Magento\Framework\Config\ValidationStateInterface $validationState, $fileName='events.xml', $idAttributes=[], $domDocumentClass=\Magento\Framework\Config\Dom::class, $defaultScope='global')
Definition: Reader.php:29
$fileName
Definition: translate.phtml:15