Skip to content

Commit

Permalink
Merge pull request #14982 from cakephp/dic-runcommand
Browse files Browse the repository at this point in the history
Add docs for runCommand + container
  • Loading branch information
markstory committed Sep 22, 2020
2 parents ffa1af4 + 923446e commit 957901c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Console/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 957901c

Please sign in to comment.