Reader.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Search\SearchEngine\Config;
  7. class Reader extends \Magento\Framework\Config\Reader\Filesystem
  8. {
  9. /**
  10. * List of id attributes for merge
  11. *
  12. * @var array
  13. */
  14. protected $_idAttributes = ['/engines/engine' => 'name'];
  15. /**
  16. * Constructor
  17. *
  18. * @param \Magento\Framework\Config\FileResolverInterface $fileResolver
  19. * @param Converter $converter
  20. * @param SchemaLocator $schemaLocator
  21. * @param \Magento\Framework\Config\ValidationStateInterface $validationState
  22. * @param string $fileName
  23. * @param array $idAttributes
  24. * @param string $domDocumentClass
  25. * @param string $defaultScope
  26. */
  27. public function __construct(
  28. \Magento\Framework\Config\FileResolverInterface $fileResolver,
  29. Converter $converter,
  30. SchemaLocator $schemaLocator,
  31. \Magento\Framework\Config\ValidationStateInterface $validationState,
  32. $fileName = 'search_engine.xml',
  33. $idAttributes = [],
  34. $domDocumentClass = \Magento\Framework\Config\Dom::class,
  35. $defaultScope = 'global'
  36. ) {
  37. parent::__construct(
  38. $fileResolver,
  39. $converter,
  40. $schemaLocator,
  41. $validationState,
  42. $fileName,
  43. $idAttributes,
  44. $domDocumentClass,
  45. $defaultScope
  46. );
  47. }
  48. }