Symfony\Component\Console\Command\Command::execute
Executes the current command.
This method is not abstract because you can use this class as a concrete class. In this case, instead of defining the execute() method, you set the code to execute by passing a Closure to the setCode() method.
Signature
protected function execute(InputInterface
$input,
OutputInterface
$output )
Parameters
$input
— Symfony\Component\Console\Input\InputInterface- An InputInterface instance
$output
— Symfony\Component\Console\Output\OutputInterface- An OutputInterface instance
Returns
- null|integer
- null or 0 if everything went fine, or an error code
Errors/Exceptions
-
LogicException
- When this abstract method is not implemented