Reader.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\MessageQueue\Publisher\Config\Xml;
  7. use \Magento\Framework\MessageQueue\Publisher\Config\ReaderInterface;
  8. /**
  9. * Reader for etc/queue_publisher.xml configs.
  10. */
  11. class Reader extends \Magento\Framework\Config\Reader\Filesystem implements ReaderInterface
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. protected $_idAttributes = [
  17. '/config/publisher' => 'topic',
  18. '/config/publisher/connection' => 'name'
  19. ];
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function __construct(
  24. \Magento\Framework\Config\FileResolverInterface $fileResolver,
  25. Converter $converter,
  26. SchemaLocator $schemaLocator,
  27. \Magento\Framework\Config\ValidationStateInterface $validationState,
  28. $fileName = 'queue_publisher.xml',
  29. $idAttributes = [],
  30. $domDocumentClass = \Magento\Framework\Config\Dom::class,
  31. $defaultScope = 'global'
  32. ) {
  33. parent::__construct(
  34. $fileResolver,
  35. $converter,
  36. $schemaLocator,
  37. $validationState,
  38. $fileName,
  39. $idAttributes,
  40. $domDocumentClass,
  41. $defaultScope
  42. );
  43. }
  44. }