di.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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\Controller\Rest\VirtualType\AsynchronousBulkRequestProcessor" type="Magento\WebapiAsync\Controller\Rest\AsynchronousRequestProcessor">
  38. <arguments>
  39. <argument name="inputParamsResolver" xsi:type="object">Magento\WebapiAsync\Controller\VirtualType\InputParamsResolver</argument>
  40. <argument name="processorPath" xsi:type="const">Magento\WebapiAsync\Controller\Rest\AsynchronousRequestProcessor::BULK_PROCESSOR_PATH</argument>
  41. </arguments>
  42. </virtualType>
  43. <virtualType name="Magento\WebapiAsync\Controller\Rest\VirtualType\AsynchronousBulkSchemaRequestProcessor" type="Magento\WebapiAsync\Controller\Rest\AsynchronousSchemaRequestProcessor">
  44. <arguments>
  45. <argument name="processorPath" xsi:type="const">Magento\WebapiAsync\Controller\Rest\AsynchronousSchemaRequestProcessor::BULK_PROCESSOR_PATH</argument>
  46. </arguments>
  47. </virtualType>
  48. <type name="Magento\Webapi\Controller\Rest">
  49. <plugin name="webapiContorllerRestAsync" type="Magento\WebapiAsync\Plugin\ControllerRest" />
  50. </type>
  51. </config>