Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public static function createForConfig(array $bigQueryConfig): BigQueryClient |
||
13 | { |
||
14 | $clientConfig = array_merge([ |
||
15 | 'projectId' => $bigQueryConfig['project_id'], |
||
16 | 'keyFilePath' => $bigQueryConfig['application_credentials'], |
||
17 | 'keyFile' => Arr::get($bigQueryConfig, 'keyFile', null), |
||
18 | 'authCache' => self::configureCache($bigQueryConfig['auth_cache_store']), |
||
19 | ], Arr::get($bigQueryConfig, 'client_options', [])); |
||
20 | |||
21 | return new BigQueryClient($clientConfig); |
||
22 | } |
||
23 | |||
33 |