-
Notifications
You must be signed in to change notification settings - Fork 9.4k
/
Copy pathReader.php
50 lines (48 loc) · 1.68 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
46
47
48
49
50
<?php
/**
* Event observers configuration filesystem loader. Loads event observers configuration from XML files, split by scopes
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Event\Config;
class Reader extends \Magento\Framework\Config\Reader\Filesystem
{
/**
* List of id attributes for merge
*
* @var array
*/
protected $_idAttributes = ['/config/event' => 'name', '/config/event/observer' => 'name'];
/**
* @param \Magento\Framework\Config\FileResolverInterface $fileResolver
* @param \Magento\Framework\Event\Config\Converter $converter
* @param \Magento\Framework\Event\Config\SchemaLocator $schemaLocator
* @param \Magento\Framework\Config\ValidationStateInterface $validationState
* @param string $fileName
* @param array $idAttributes
* @param string $domDocumentClass
* @param string $defaultScope
*/
public function __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'
) {
parent::__construct(
$fileResolver,
$converter,
$schemaLocator,
$validationState,
$fileName,
$idAttributes,
$domDocumentClass,
$defaultScope
);
}
}