RequestHandler.php 520 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestModuleAsyncAmqp\Model;
  7. class RequestHandler
  8. {
  9. /**
  10. * @param \Magento\TestModuleAsyncAmqp\Model\AsyncTestData $simpleDataItem
  11. */
  12. public function process($simpleDataItem)
  13. {
  14. file_put_contents(
  15. $simpleDataItem->getTextFilePath(),
  16. 'InvokedFromRequestHandler-' . $simpleDataItem->getValue() . PHP_EOL,
  17. FILE_APPEND
  18. );
  19. }
  20. }