summaryrefslogtreecommitdiff
path: root/src/Command
diff options
context:
space:
mode:
Diffstat (limited to 'src/Command')
-rw-r--r--src/Command/RunCommand.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Command/RunCommand.php b/src/Command/RunCommand.php
index 145b2d5..6d8d2c9 100644
--- a/src/Command/RunCommand.php
+++ b/src/Command/RunCommand.php
@@ -30,14 +30,14 @@ class RunCommand extends Command
}
$commands = [];
- foreach ($config['tasks'] as $taskName => $task) {
+ foreach ($config['tasks'] as $task) {
/**@var Task $task*/
if (! $task->module->checkState()) {
- $output->writeln($taskName . ': Adding commands from ' . get_class($task->module));
+ $output->writeln($task->getName() . ': Adding commands from ' . get_class($task->module));
array_push($commands, ...$task->module->getCommands());
}
else {
- $output->writeln($taskName . ': Skipping commands from ' . get_class($task->module));
+ $output->writeln($task->getName() . ': Skipping commands from ' . get_class($task->module));
}
}