think\Console::call PHP Method

call() public static method

public static call ( $command, array $parameters = [] ) : Output | Buffer
$command
$parameters array
return think\console\Output | think\console\output\driver\Buffer
    public static function call($command, array $parameters = [])
    {
        $console = self::init(false);
        array_unshift($parameters, $command);
        $input = new Input($parameters);
        $output = new Output('buffer');
        $console->setCatchExceptions(false);
        $console->find($command)->run($input, $output);
        return $output;
    }