Recurring.php 888 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Amqp\Setup;
  7. use Magento\Framework\Amqp\TopologyInstaller;
  8. use Magento\Framework\Setup\InstallSchemaInterface;
  9. use Magento\Framework\Setup\ModuleContextInterface;
  10. use Magento\Framework\Setup\SchemaSetupInterface;
  11. /**
  12. * Class Recurring
  13. */
  14. class Recurring implements InstallSchemaInterface
  15. {
  16. /**
  17. * @var TopologyInstaller
  18. */
  19. protected $topologyInstaller;
  20. /**
  21. * @param TopologyInstaller $topologyInstaller
  22. */
  23. public function __construct(TopologyInstaller $topologyInstaller)
  24. {
  25. $this->topologyInstaller = $topologyInstaller;
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
  31. {
  32. $this->topologyInstaller->install();
  33. }
  34. }