Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConfigInterface.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
10 
11 use Magento\Framework\Communication\ConfigInterface as CommunicationConfig;
13 
19 interface ConfigInterface
20 {
24  const CACHE_ID = 'webapi_async_config';
25  const TOPIC_PREFIX = 'async.';
26  const DEFAULT_CONSUMER_INSTANCE = MassConsumer::class;
29  const SERVICE_PARAM_KEY_INTERFACE = 'interface';
30  const SERVICE_PARAM_KEY_METHOD = 'method';
31  const SERVICE_PARAM_KEY_TOPIC = 'topic';
32  const DEFAULT_HANDLER_NAME = 'async';
33  const SYSTEM_TOPIC_NAME = 'async.system.required.wrapper.topic';
35  CommunicationConfig::TOPIC_NAME => self::SYSTEM_TOPIC_NAME,
36  CommunicationConfig::TOPIC_IS_SYNCHRONOUS => false,
37  CommunicationConfig::TOPIC_REQUEST => OperationInterface::class,
38  CommunicationConfig::TOPIC_REQUEST_TYPE => CommunicationConfig::TOPIC_REQUEST_TYPE_CLASS,
39  CommunicationConfig::TOPIC_RESPONSE => null,
40  CommunicationConfig::TOPIC_HANDLERS => [],
41  ];
49  public function getServices();
50 
59  public function getTopicName($routeUrl, $httpMethod);
60 }