Google\Cloud\ClientTrait::configureAuthentication PHP Method

configureAuthentication() private method

Fetch and validate the keyfile and set the project ID.
private configureAuthentication ( array $config ) : array
$config array
return array
    private function configureAuthentication(array $config)
    {
        $config['keyFile'] = $this->getKeyFile($config);
        $this->projectId = $this->detectProjectId($config);
        return $config;
    }