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