-
Notifications
You must be signed in to change notification settings - Fork 9.4k
/
Copy pathReader.php
45 lines (43 loc) · 1.39 KB
/
Reader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Attribute configuration reader
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Eav\Model\Entity\Attribute\Config;
class Reader extends \Magento\Framework\Config\Reader\Filesystem
{
/**
* Xml merging attributes
*
* @var array
*/
protected $_idAttributes = [
'/config/entity' => 'type',
'/config/entity/attribute' => 'code',
'/config/entity/attribute/field' => 'code',
];
/**
* @param \Magento\Framework\Config\FileResolverInterface $fileResolver
* @param \Magento\Eav\Model\Entity\Attribute\Config\Converter $converter
* @param \Magento\Eav\Model\Entity\Attribute\Config\SchemaLocator $schemaLocator
* @param \Magento\Framework\Config\ValidationStateInterface $validationState
* @codeCoverageIgnore
*/
public function __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
) {
parent::__construct(
$fileResolver,
$converter,
$schemaLocator,
$validationState,
'eav_attributes.xml',
[]
);
}
}