diff --git a/src/Console/BaseCommand.php b/src/Console/BaseCommand.php index 6f8af9bb063..18b5ad38a69 100644 --- a/src/Console/BaseCommand.php +++ b/src/Console/BaseCommand.php @@ -242,6 +242,10 @@ public function abort(int $code = self::CODE_ERROR): void /** * Execute another command with the provided set of arguments. * + * If you are using a string command name, that command's dependencies + * will not be resolved with the application container. Instead you will + * need to pass the command as an object with all of its dependencies. + * * @param string|\Cake\Console\CommandInterface $command The command class name or command instance. * @param array $args The arguments to invoke the command with. * @param \Cake\Console\ConsoleIo $io The ConsoleIo instance to use for the executed command.