- Add 'help' in the list of commands that need plugin command ($mayNeedPluginCommand) - Remove `'global' !== $commandName` because $mayNeedPluginCommand encure that $commandName is one of `false`, `empty`, `list` or `help` (so never 'global') Co-authored-by: Duret Joel <joel.duret@neo-soft.fr>pull/10158/head
parent
aa4de3b13d
commit
11810e3c2d
|
@ -196,10 +196,10 @@ class Application extends BaseApplication
|
||||||
// not a composer command, so try loading plugin ones
|
// not a composer command, so try loading plugin ones
|
||||||
false === $commandName
|
false === $commandName
|
||||||
// list command requires plugin commands to show them
|
// list command requires plugin commands to show them
|
||||||
|| in_array($commandName, array('', 'list'), true)
|
|| in_array($commandName, array('', 'list', 'help'), true)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($mayNeedPluginCommand && !$this->disablePluginsByDefault && !$this->hasPluginCommands && 'global' !== $commandName) {
|
if ($mayNeedPluginCommand && !$this->disablePluginsByDefault && !$this->hasPluginCommands) {
|
||||||
try {
|
try {
|
||||||
foreach ($this->getPluginCommands() as $command) {
|
foreach ($this->getPluginCommands() as $command) {
|
||||||
if ($this->has($command->getName())) {
|
if ($this->has($command->getName())) {
|
||||||
|
|
Loading…
Reference in New Issue