diff --git a/src/Commands/InfoCommand.php b/src/Commands/InfoCommand.php index a4eb4e5..0687747 100644 --- a/src/Commands/InfoCommand.php +++ b/src/Commands/InfoCommand.php @@ -11,6 +11,7 @@ use Spiral\TemporalBridge\DeclarationLocatorInterface; use Spiral\TemporalBridge\DeclarationWorkerResolver; use Symfony\Component\Console\Helper\TableSeparator; +use Symfony\Component\Console\Output\OutputInterface; use Temporal\Internal\Declaration\Reader\ActivityReader; use Temporal\Internal\Declaration\Reader\WorkflowReader; use Temporal\Workflow\WorkflowInterface; @@ -63,7 +64,10 @@ public function perform( $rootDir = \realpath($dir->get('root')) . '/'; + \assert($this->output instanceof OutputInterface); + $this->output->title('Workflows'); + $table = $this->table(['Name', 'Class', 'Task Queue']); foreach ($workflows as $workflow) { $table->addRow([