getConsumers();
$output->writeln($consumers);
return \Magento\Framework\Console\Cli::RETURN_SUCCESS;
}
/**
* @inheritdoc
*/
protected function configure()
{
$this->setName(self::COMMAND_QUEUE_CONSUMERS_LIST);
$this->setDescription('List of MessageQueue consumers');
$this->setHelp(
<<getConsumerConfig()->getConsumers() as $consumer) {
$consumerNames[] = $consumer->getName();
}
return $consumerNames;
}
/**
* Get consumer config.
*
* @return ConsumerConfig
*
* @deprecated 100.2.0
* @see MAGETWO-71174
*/
private function getConsumerConfig()
{
if ($this->consumerConfig === null) {
$this->consumerConfig = \Magento\Framework\App\ObjectManager::getInstance()->get(ConsumerConfig::class);
}
return $this->consumerConfig;
}
}