Skip to content

Commit d327eb9

Browse files
[10.x] Show queue connection in MonitorCommand (#46122)
* Show queue connection in MonitorCommand * formatting --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 9825c0f commit d327eb9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/Illuminate/Queue/Console/MonitorCommand.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ class MonitorCommand extends Command
4242
*/
4343
protected $events;
4444

45-
/**
46-
* The table headers for the command.
47-
*
48-
* @var string[]
49-
*/
50-
protected $headers = ['Connection', 'Queue', 'Size', 'Status'];
51-
5245
/**
5346
* Create a new queue monitor command.
5447
*
@@ -116,9 +109,10 @@ protected function displaySizes(Collection $queues)
116109
$this->components->twoColumnDetail('<fg=gray>Queue name</>', '<fg=gray>Size / Status</>');
117110

118111
$queues->each(function ($queue) {
112+
$name = '['.$queue['connection'].'] '.$queue['queue'];
119113
$status = '['.$queue['size'].'] '.$queue['status'];
120114

121-
$this->components->twoColumnDetail($queue['queue'], $status);
115+
$this->components->twoColumnDetail($name, $status);
122116
});
123117

124118
$this->newLine();

0 commit comments

Comments
 (0)