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