Reader.php 1.7 KB

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