Silly\Application::runCommand PHP Метод

runCommand() публичный Метод

Helper to run a sub-command from a command.
public runCommand ( string $command, Symfony\Component\Console\Output\OutputInterface $output = null ) : integer
$command string Command that should be run.
$output Symfony\Component\Console\Output\OutputInterface The output to use. If not provided, the output will be silenced.
Результат integer 0 if everything went fine, or an error code
    public function runCommand($command, OutputInterface $output = null)
    {
        $input = new StringInput($command);
        $command = $this->find($this->getCommandName($input));
        return $command->run($input, $output ?: new NullOutput());
    }