Reader.php 1.6 KB

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