Reader.php 1.6 KB

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