Closed boesing closed 2 years ago
Temporary workaround is to add all aliases to the commands
map but I would prefer having this handled by this component on its own.
Seems to work now. Not sure in which release this got fixed but its not an issue anymore.
Bug Report
Summary
Command aliases as supported in
symfony/console
are not supported. I am actually migrating a project fromzf-console
tolaminas-cli
. A "common" way to declare commands withsymfony/console
is to group commands with colons (:
, likemodule:command
).To keep BC compatibility with systemd timers (cronjobs), I wanted to add the old command name (which has the format
command-module
) as an alias.Current behavior
When just printing
help
, the command is printed with its aliased name. When executing the command,AbstractContainerCommandLoader
will only take those commands into account which are exclusively mapped inlaminas-cli.commands
.How to reproduce
Expected behavior
FooCommand
is being executed.