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