Skip to content

Commit f5b5793

Browse files
author
Pavel
committed
Issue#17 Logic using route cutsomizations for async api routes. Needed config was moved to webapi_async.xml.
1 parent b6a737d commit f5b5793

25 files changed

+134
-548
lines changed

app/code/Magento/WebapiAsync/Model/RouteCustomizationConfig.php

Lines changed: 0 additions & 79 deletions
This file was deleted.

app/code/Magento/WebapiAsync/Model/RouteCustomizationConfig/Converter.php

Lines changed: 0 additions & 88 deletions
This file was deleted.

app/code/Magento/WebapiAsync/Model/RouteCustomizationConfig/Reader.php

Lines changed: 0 additions & 56 deletions
This file was deleted.

app/code/Magento/WebapiAsync/Model/RouteCustomizationConfig/SchemaLocator.php

Lines changed: 0 additions & 60 deletions
This file was deleted.

app/code/Magento/WebapiAsync/Model/ServiceConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class ServiceConfig
2222
{
23-
const CACHE_ID = 'webapi_async_config';
23+
const CACHE_ID = 'webapi_async_service_config';
2424

2525
/**
2626
* @var WebapiCache
@@ -71,7 +71,7 @@ public function getServices()
7171
if ($services && is_string($services)) {
7272
$this->services = $this->serializer->unserialize($services);
7373
} else {
74-
$this->services = $this->configReader->read()[Converter::KEY_SERVICES] ?? [];
74+
$this->services = $this->configReader->read();
7575
$this->cache->save($this->serializer->serialize($this->services), self::CACHE_ID);
7676
}
7777
}

0 commit comments

Comments
 (0)