Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (WebapiCache $cache, WebapiConfig $webApiConfig, SerializerInterface $serializer=null) | |
getServices () | |
getTopicName ($routeUrl, $httpMethod) | |
Additional Inherited Members | |
![]() | |
const | CACHE_ID = 'webapi_async_config' |
const | TOPIC_PREFIX = 'async.' |
const | DEFAULT_CONSUMER_INSTANCE = MassConsumer::class |
const | DEFAULT_CONSUMER_CONNECTION = 'amqp' |
const | DEFAULT_CONSUMER_MAX_MESSAGE = null |
const | SERVICE_PARAM_KEY_INTERFACE = 'interface' |
const | SERVICE_PARAM_KEY_METHOD = 'method' |
const | SERVICE_PARAM_KEY_TOPIC = 'topic' |
const | DEFAULT_HANDLER_NAME = 'async' |
const | SYSTEM_TOPIC_NAME = 'async.system.required.wrapper.topic' |
const | SYSTEM_TOPIC_CONFIGURATION |
Definition at line 18 of file Config.php.
__construct | ( | WebapiCache | $cache, |
WebapiConfig | $webApiConfig, | ||
SerializerInterface | $serializer = null |
||
) |
Initialize dependencies.
\Magento\Webapi\Model\Cache\Type\Webapi | $cache | |
\Magento\Webapi\Model\Config | $webApiConfig | |
\Magento\Framework\Serialize\SerializerInterface | null | $serializer |
Definition at line 47 of file Config.php.
getServices | ( | ) |
{#- Get array of generated topics name and related to this topic service class and methods
Implements ConfigInterface.
Definition at line 60 of file Config.php.
getTopicName | ( | $routeUrl, | |
$httpMethod | |||
) |
{Get topic name from webapi_async_config services config array by route url and http method
string | $routeUrl | |
string | $httpMethod | GET|POST|PUT|DELETE |
Implements ConfigInterface.
Definition at line 78 of file Config.php.