public __construct ( array $config = [] ) | ||
$config | array | [optional] { Configuration options. Please see {@see \Google\Cloud\RequestWrapperTrait::setCommonDefaults()} for the other available options. @type callable $authHttpHandler A handler used to deliver Psr7 requests specifically for authentication. @type CodecInterface $codec A codec used to encode responses. @type array $grpcOptions gRPC specific configuration options passed off to the GAX library. } |
public function __construct(array $config = [])
{
$this->setCommonDefaults($config);
$config += ['authHttpHandler' => null, 'codec' => new PhpArray(), 'grpcOptions' => []];
$this->authHttpHandler = $config['authHttpHandler'] ?: HttpHandlerFactory::build();
$this->codec = $config['codec'];
$this->grpcOptions = $config['grpcOptions'];
}