self-upgrade

This commit is contained in:
2025-02-19 16:41:04 +01:00
parent 5e30403988
commit e72000d2e8
22 changed files with 464 additions and 250 deletions

View File

@@ -57,6 +57,14 @@ class PluginCommandLoader implements CommandLoaderInterface
$command = new $command_class();
if ($command instanceof Command) {
$this->commands[$command->getName()] = $command;
// If the command has an alias, add that as a possible command name.
$aliases = $this->commands[$command->getName()]->getAliases();
if (isset($aliases)) {
foreach ($aliases as $alias) {
$this->commands[$alias] = $command;
}
}
}
}
}