|
@@ 50-52 (lines=3) @@
|
| 47 |
|
|
| 48 |
|
protected function guardAgainstInvalidConfiguration(array $searchConsoleConfig = null) |
| 49 |
|
{ |
| 50 |
|
if ($searchConsoleConfig['auth_type'] == 'service_account' && ! file_exists($searchConsoleConfig['connections']['service_account']['application_credentials'])) { |
| 51 |
|
throw InvalidConfiguration::credentialsJsonDoesNotExist($searchConsoleConfig['connections']['service_account']['application_credentials']); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
if ($searchConsoleConfig['auth_type'] == 'oauth_json' && ! file_exists($searchConsoleConfig['connections']['oauth_json']['auth_config'])) { |
| 55 |
|
throw InvalidConfiguration::credentialsJsonDoesNotExist($searchConsoleConfig['connections']['oauth_json']['auth_config']); |
|
@@ 54-56 (lines=3) @@
|
| 51 |
|
throw InvalidConfiguration::credentialsJsonDoesNotExist($searchConsoleConfig['connections']['service_account']['application_credentials']); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
if ($searchConsoleConfig['auth_type'] == 'oauth_json' && ! file_exists($searchConsoleConfig['connections']['oauth_json']['auth_config'])) { |
| 55 |
|
throw InvalidConfiguration::credentialsJsonDoesNotExist($searchConsoleConfig['connections']['oauth_json']['auth_config']); |
| 56 |
|
} |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
protected function setupConfig() |