public function listCommand()
    {
        $rows = [];
        foreach ($this->queueConfigurations as $queueName => $queueConfiguration) {
            $queue = $this->queueManager->getQueue($queueName);
            try {
                $numberOfMessages = $queue->countReady();
            } catch (\Exception $e) {
                $numberOfMessages = '-';
            }
            $rows[] = [$queue->getName(), TypeHandling::getTypeForValue($queue), $numberOfMessages];
        }
        $this->output->outputTable($rows, ['Queue', 'Type', '# messages']);
    }
public function listCommand()
    {
        $rows = [];
        foreach ($this->queueConfigurations as $queueName => $queueConfiguration) {
            $queue = $this->queueManager->getQueue($queueName);
            try {
                $numberOfMessages = $queue->countReady();
            } catch (\Exception $e) {
                $numberOfMessages = '-';
            }
            $rows[] = [$queue->getName(), TypeHandling::getTypeForValue($queue), $numberOfMessages];
        }
        $this->output->outputTable($rows, ['Queue', 'Type', '# messages']);
    }
public function listCommand ( ) { $ rows = [ ] ; foreach ( $ this -> queueConfigurations as $ queueName => $ queueConfiguration ) { $ queue = $ this -> queueManager -> getQueue ( $ queueName ) ; try { $ numberOfMessages = $ queue -> countReady ( ) ; } catch ( \ Exception $ e ) { $ numberOfMessages = '-' ; } $ rows [ ] = [ $ queue -> getName ( ) , TypeHandling :: getTypeForValue ( $ queue ) , $ numberOfMessages ] ; } $ this -> output -> outputTable ( $ rows , [ 'Queue' , 'Type' , '# messages' ] ) ; }
List configured queues

Displays all configured queues, their type and the number of messages that are ready to be processed.

@return void
@throws Exception
List configured queues