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
7 
11 class Reader extends \Magento\Framework\Config\Reader\Filesystem
12 {
18  protected $_idAttributes = [
19  '/routes/route' => ['url', 'method'],
20  '/routes/route/resources/resource' => 'ref',
21  '/routes/route/data' => 'name',
22  ];
23 
34  public function __construct(
35  \Magento\Framework\Config\FileResolverInterface $fileResolver,
36  Converter $converter,
37  SchemaLocator $schemaLocator,
38  \Magento\Framework\Config\ValidationStateInterface $validationState,
39  $fileName = 'webapi.xml',
40  $idAttributes = [],
41  $domDocumentClass = \Magento\Framework\Config\Dom::class,
42  $defaultScope = 'global'
43  ) {
44  parent::__construct(
45  $fileResolver,
46  $converter,
47  $schemaLocator,
49  $fileName,
50  $idAttributes,
51  $domDocumentClass,
52  $defaultScope
53  );
54  }
55 }
__construct(\Magento\Framework\Config\FileResolverInterface $fileResolver, Converter $converter, SchemaLocator $schemaLocator, \Magento\Framework\Config\ValidationStateInterface $validationState, $fileName='webapi.xml', $idAttributes=[], $domDocumentClass=\Magento\Framework\Config\Dom::class, $defaultScope='global')
Definition: Reader.php:34
$fileName
Definition: translate.phtml:15