Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
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 = [
18  '/config/entity' => 'type',
19  '/config/entity/attribute' => 'code',
20  '/config/entity/attribute/field' => 'code',
21  ];
22 
30  public function __construct(
31  \Magento\Framework\Config\FileResolverInterface $fileResolver,
32  \Magento\Eav\Model\Entity\Attribute\Config\Converter $converter,
33  \Magento\Eav\Model\Entity\Attribute\Config\SchemaLocator $schemaLocator,
34  \Magento\Framework\Config\ValidationStateInterface $validationState
35  ) {
36  parent::__construct(
37  $fileResolver,
38  $converter,
39  $schemaLocator,
41  'eav_attributes.xml',
42  []
43  );
44  }
45 }
__construct(\Magento\Framework\Config\FileResolverInterface $fileResolver, \Magento\Eav\Model\Entity\Attribute\Config\Converter $converter, \Magento\Eav\Model\Entity\Attribute\Config\SchemaLocator $schemaLocator, \Magento\Framework\Config\ValidationStateInterface $validationState)
Definition: Reader.php:30