public static function build($serviceAddress, array $config = [])
    {
        $config += [
            'httpHandler'  => null,
        ];
        list($baseUri, $port) = self::normalizeServiceAddress($serviceAddress);
        $httpHandler = $config['httpHandler'] ?: self::buildHttpHandlerAsync();
        return new GrpcFallbackTransport("$baseUri:$port", $httpHandler);
    }
public static function build($serviceAddress, array $config = [])
    {
        $config += [
            'httpHandler'  => null,
        ];
        list($baseUri, $port) = self::normalizeServiceAddress($serviceAddress);
        $httpHandler = $config['httpHandler'] ?: self::buildHttpHandlerAsync();
        return new GrpcFallbackTransport("$baseUri:$port", $httpHandler);
    }
public static function build ( $ serviceAddress , array $ config = [ ] ) { $ config += [ 'httpHandler' => null , ] ; list ( $ baseUri , $ port ) = self :: normalizeServiceAddress ( $ serviceAddress ) ; $ httpHandler = $ config [ 'httpHandler' ] ? : self :: buildHttpHandlerAsync ( ) ; return new GrpcFallbackTransport ( "$baseUri:$port" , $ httpHandler ) ; }
Builds a GrpcFallbackTransport.

@param string $serviceAddress
The address of the API remote host, for example "example.googleapis.com".
@param array $config {
Config options used to construct the grpc-fallback transport.

@type callable $httpHandler A handler used to deliver PSR-7 requests.
}
@return GrpcFallbackTransport
@throws ValidationException
Builds a GrpcFallbackTransport .