Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 7d3a565

Browse files
committed
magento-engcom/bulk-api#4 Support for Async operations in WebAPI
- removed unsupported void return type
1 parent e954428 commit 7d3a565

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/code/Magento/AsynchronousOperations/Model/OperationProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function __construct(
9292
* @param string $encodedMessage
9393
* @return void
9494
*/
95-
public function process(string $encodedMessage): void
95+
public function process(string $encodedMessage)
9696
{
9797
$operation = $this->messageEncoder->decode(AsyncConfig::SYSTEM_TOPIC_NAME, $encodedMessage);
9898
$this->messageValidator->validate(AsyncConfig::SYSTEM_TOPIC_NAME, $operation);

app/code/Magento/WebapiAsync/etc/di.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
10-
<!--type name="Magento\Webapi\Model\ServiceMetadata">
10+
<type name="Magento\Webapi\Model\ServiceMetadata">
1111
<plugin name="webapiServiceMetadataAsync" type="Magento\WebapiAsync\Plugin\ServiceMetadata" />
12-
</type-->
12+
</type>
1313
</config>

app/code/Magento/WebapiAsync/etc/webapi_rest/di.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
1010

11-
<!--type name="Magento\Webapi\Controller\Rest\RequestProcessorPool">
11+
<type name="Magento\Webapi\Controller\Rest\RequestProcessorPool">
1212
<arguments>
1313
<argument name="requestProcessors" xsi:type="array">
1414
<item name="asyncSchema" xsi:type="object" sortOrder="60">Magento\WebapiAsync\Controller\Rest\AsynchronousSchemaRequestProcessor</item>
1515
<item name="async" xsi:type="object" sortOrder="150">Magento\WebapiAsync\Controller\Rest\AsynchronousRequestProcessor</item>
1616
</argument>
1717
</arguments>
18-
</type-->
18+
</type>
1919
</config>

0 commit comments

Comments
 (0)