Symfony\Component\Console\Command\Command::setCode
Sets the code to execute when running this command.
If this method is used, it overrides the code defined in the execute() method.
Signature
public function setCode(callable
$code )
Parameters
$code
— object- A callable(InputInterface $input, OutputInterface $output)
Returns
- Command
- The current instance