webapiAsyncConfig = $webapiAsyncConfig; } /** * Generate publisher configuration based on remote services declarations * * @param string|null $scope * @return array * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function read($scope = null) { $asyncServicesData = $this->webapiAsyncConfig->getServices(); $result = []; foreach ($asyncServicesData as $serviceData) { $topicName = $serviceData[WebApiAsyncConfig::SERVICE_PARAM_KEY_TOPIC]; $result[$topicName] = [ 'topic' => $topicName, 'disabled' => false, 'connections' => [ 'amqp' => [ 'name' => 'amqp', 'exchange' => 'magento', 'disabled' => false, ], ], ]; } return $result; } }