選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

78 行
4.6 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  10. <type name="Magento\Webapi\Model\ServiceMetadata">
  11. <plugin name="webapiServiceMetadataAsync" type="Magento\WebapiAsync\Plugin\ServiceMetadata" />
  12. </type>
  13. <type name="Magento\Webapi\Model\Cache\Type\Webapi">
  14. <plugin name="webapiCacheAsync" type="Magento\WebapiAsync\Plugin\Cache\Webapi" />
  15. </type>
  16. <virtualType name="Magento\WebapiAsync\Model\VirtualType\Rest\Config" type="Magento\Webapi\Model\Rest\Config">
  17. <arguments>
  18. <argument name="config" xsi:type="object">Magento\WebapiAsync\Model\BulkServiceConfig</argument>
  19. </arguments>
  20. </virtualType>
  21. <virtualType name="Magento\WebapiAsync\Controller\VirtualType\Rest\Router" type="Magento\Webapi\Controller\Rest\Router">
  22. <arguments>
  23. <argument name="apiConfig" xsi:type="object">Magento\WebapiAsync\Model\VirtualType\Rest\Config</argument>
  24. </arguments>
  25. </virtualType>
  26. <virtualType name="Magento\WebapiAsync\Controller\VirtualType\Rest\RequestValidator" type="Magento\Webapi\Controller\Rest\RequestValidator">
  27. <arguments>
  28. <argument name="router" xsi:type="object">Magento\WebapiAsync\Controller\VirtualType\Rest\Router</argument>
  29. </arguments>
  30. </virtualType>
  31. <virtualType name="Magento\WebapiAsync\Controller\VirtualType\InputParamsResolver" type="Magento\WebapiAsync\Controller\Rest\Asynchronous\InputParamsResolver">
  32. <arguments>
  33. <argument name="requestValidator" xsi:type="object">Magento\WebapiAsync\Controller\VirtualType\Rest\RequestValidator</argument>
  34. <argument name="isBulk" xsi:type="boolean">true</argument>
  35. </arguments>
  36. </virtualType>
  37. <virtualType name="Magento\WebapiAsync\Model\Bulk\OperationRepository" type="Magento\WebapiAsync\Model\OperationRepository">
  38. <arguments>
  39. <argument name="inputParamsResolver" xsi:type="object">Magento\WebapiAsync\Controller\VirtualType\InputParamsResolver</argument>
  40. </arguments>
  41. </virtualType>
  42. <virtualType name="Magento\WebapiAsync\Model\MassSchedule" type="Magento\AsynchronousOperations\Model\MassSchedule">
  43. <arguments>
  44. <argument name="operationRepository" xsi:type="object">Magento\WebapiAsync\Model\OperationRepository</argument>
  45. </arguments>
  46. </virtualType>
  47. <virtualType name="Magento\WebapiAsync\Model\Bulk\MassSchedule" type="Magento\AsynchronousOperations\Model\MassSchedule">
  48. <arguments>
  49. <argument name="operationRepository" xsi:type="object">Magento\WebapiAsync\Model\Bulk\OperationRepository</argument>
  50. </arguments>
  51. </virtualType>
  52. <type name="Magento\WebapiAsync\Controller\Rest\AsynchronousRequestProcessor">
  53. <arguments>
  54. <argument name="asyncBulkPublisher" xsi:type="object">Magento\WebapiAsync\Model\MassSchedule</argument>
  55. </arguments>
  56. </type>
  57. <virtualType name="Magento\WebapiAsync\Controller\Rest\VirtualType\AsynchronousBulkRequestProcessor" type="Magento\WebapiAsync\Controller\Rest\AsynchronousRequestProcessor">
  58. <arguments>
  59. <argument name="inputParamsResolver" xsi:type="object">Magento\WebapiAsync\Controller\VirtualType\InputParamsResolver</argument>
  60. <argument name="processorPath" xsi:type="const">Magento\WebapiAsync\Controller\Rest\AsynchronousRequestProcessor::BULK_PROCESSOR_PATH</argument>
  61. <argument name="asyncBulkPublisher" xsi:type="object">Magento\WebapiAsync\Model\Bulk\MassSchedule</argument>
  62. </arguments>
  63. </virtualType>
  64. <virtualType name="Magento\WebapiAsync\Controller\Rest\VirtualType\AsynchronousBulkSchemaRequestProcessor" type="Magento\WebapiAsync\Controller\Rest\AsynchronousSchemaRequestProcessor">
  65. <arguments>
  66. <argument name="processorPath" xsi:type="const">Magento\WebapiAsync\Controller\Rest\AsynchronousSchemaRequestProcessor::BULK_PROCESSOR_PATH</argument>
  67. </arguments>
  68. </virtualType>
  69. <type name="Magento\Webapi\Controller\Rest">
  70. <plugin name="webapiContorllerRestAsync" type="Magento\WebapiAsync\Plugin\ControllerRest" />
  71. </type>
  72. <type name="Magento\AsynchronousOperations\Model\MassConsumerEnvelopeCallback">
  73. <plugin name="storeIdFieldForAsynchronousOperationsMassConsumerEnvelopeCallback"
  74. type="Magento\WebapiAsync\Plugin\AsynchronousOperations\MassConsumerEnvelopeCallback"
  75. />
  76. </type>
  77. </config>