Skip to content

Commit fd2b493

Browse files
authored
Merge pull request #154 from hypervel/hotfix/fix-provider-commands-register
fix: fix ignored commands registered by service provider
2 parents 713d4ff + 9445d54 commit fd2b493

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/foundation/src/Console/Kernel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ protected function collectCommands(): array
186186
$commands[] = $commandId;
187187
}
188188

189-
return $commands;
189+
return array_unique(
190+
array_merge($this->commands, $commands)
191+
);
190192
}
191193

192194
protected function loadCommands(): void

0 commit comments

Comments
 (0)