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

Commit cbcc5e8

Browse files
committed
Declate Plugin for WebApi cache and remove not used methods
1 parent 56f3580 commit cbcc5e8

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

app/code/Magento/Webapi/Model/ServiceMetadata.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -287,17 +287,6 @@ public function getRoutesConfig()
287287
return $this->routes;
288288
}
289289

290-
/**
291-
* Set Routes Config Cache ID
292-
*
293-
* @param string $routesConfigCacheId
294-
*/
295-
public function setRoutesConfigCacheId($routesConfigCacheId){
296-
297-
$this->routesConfigCacheId = $routesConfigCacheId;
298-
299-
}
300-
301290
/**
302291
* Collect the list of services with routes and request types for use in REST.
303292
*

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<type name="Magento\Webapi\Model\ServiceMetadata">
1111
<plugin name="webapiServiceMetadataAsync" type="Magento\WebapiAsync\Plugin\ServiceMetadata" />
1212
</type>
13+
<type name="Magento\Webapi\Model\Cache\Type\Webapi">
14+
<plugin name="webapiCacheAsync" type="Magento\WebapiAsync\Plugin\Cache\Webapi" />
15+
</type>
1316
<virtualType name="Magento\WebapiAsync\Model\VirtualType\Rest\Config" type="Magento\Webapi\Model\Rest\Config">
1417
<arguments>
1518
<argument name="config" xsi:type="object">Magento\WebapiAsync\Model\BulkServiceConfig</argument>

0 commit comments

Comments
 (0)