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/resource' => 'name'];
18 
29  public function __construct(
30  \Magento\Framework\Config\FileResolverInterface $fileResolver,
31  Converter $converter,
32  SchemaLocator $schemaLocator,
33  \Magento\Framework\Config\ValidationStateInterface $validationState,
34  $fileName = 'resources.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 
57  public function read($scope = null)
58  {
59  return $scope !== 'primary' ? parent::read($scope) : [];
60  }
61 }
__construct(\Magento\Framework\Config\FileResolverInterface $fileResolver, Converter $converter, SchemaLocator $schemaLocator, \Magento\Framework\Config\ValidationStateInterface $validationState, $fileName='resources.xml', $idAttributes=[], $domDocumentClass=\Magento\Framework\Config\Dom::class, $defaultScope='global')
Definition: Reader.php:29
$fileName
Definition: translate.phtml:15