Lines Matching refs:config

82   private $config;  variable in Google\\Client
106 * @param array $config
108 public function __construct(array $config = array()) argument
110 $this->config = array_merge(
180 $config
183 if (!is_null($this->config['credentials'])) {
184 if ($this->config['credentials'] instanceof CredentialsLoader) {
185 $this->credentials = $this->config['credentials'];
187 $this->setAuthConfig($this->config['credentials']);
189 unset($this->config['credentials']);
192 if (!is_null($this->config['scopes'])) {
193 $this->setScopes($this->config['scopes']);
194 unset($this->config['scopes']);
198 if (is_null($this->config['token_callback'])) {
199 $this->config['token_callback'] = function ($cacheKey, $newAccessToken) {
210 if (!is_null($this->config['cache'])) {
211 $this->setCache($this->config['cache']);
212 unset($this->config['cache']);
373 $approvalPrompt = $this->config['prompt']
375 : $this->config['approval_prompt'];
378 $includeGrantedScopes = $this->config['include_granted_scopes'] === null
380 : var_export($this->config['include_granted_scopes'], true);
384 'access_type' => $this->config['access_type'],
386 'hd' => $this->config['hd'],
388 'login_hint' => $this->config['login_hint'],
389 'openid.realm' => $this->config['openid.realm'],
390 'prompt' => $this->config['prompt'],
393 'state' => $this->config['state'],
399 $rva = $this->config['request_visible_actions'];
431 $this->config['token_callback']
440 $this->config['token_callback']
455 $this->config['token_callback']
462 if ($key = $this->config['developer_key']) {
478 $this->config['use_application_default_credentials'] = $useAppCreds;
489 return $this->config['use_application_default_credentials'];
607 $this->config['client_id'] = $clientId;
612 return $this->config['client_id'];
621 $this->config['client_secret'] = $clientSecret;
626 return $this->config['client_secret'];
635 $this->config['redirect_uri'] = $redirectUri;
640 return $this->config['redirect_uri'];
650 $this->config['state'] = $state;
660 $this->config['access_type'] = $accessType;
670 $this->config['approval_prompt'] = $approvalPrompt;
679 $this->config['login_hint'] = $loginHint;
688 $this->config['application_name'] = $applicationName;
704 $this->config['request_visible_actions'] = $requestVisibleActions;
714 $this->config['developer_key'] = $developerKey;
725 $this->config['hd'] = $hd;
739 $this->config['prompt'] = $prompt;
750 $this->config['openid.realm'] = $realm;
761 $this->config['include_granted_scopes'] = $include;
770 $this->config['token_callback'] = $tokenCallback;
802 $this->config['jwt']
892 $this->config['application_name'],
906 if ($this->config['api_format_v2']) {
921 $this->config['retry'],
922 $this->config['retry_map']
951 $this->config[$name] = $value;
956 return isset($this->config[$name]) ? $this->config[$name] : $default;
977 * @param string|array $config the configuration json
980 public function setAuthConfig($config) argument
982 if (is_string($config)) {
983 if (!file_exists($config)) {
984 throw new InvalidArgumentException(sprintf('file "%s" does not exist', $config));
987 $json = file_get_contents($config);
989 if (!$config = json_decode($json, true)) {
994 $key = isset($config['installed']) ? 'installed' : 'web';
995 if (isset($config['type']) && $config['type'] == 'service_account') {
1000 $this->setClientId($config['client_id']);
1001 $this->config['client_email'] = $config['client_email'];
1002 $this->config['signing_key'] = $config['private_key'];
1003 $this->config['signing_algorithm'] = 'HS256';
1004 } elseif (isset($config[$key])) {
1006 $this->setClientId($config[$key]['client_id']);
1007 $this->setClientSecret($config[$key]['client_secret']);
1008 if (isset($config[$key]['redirect_uris'])) {
1009 $this->setRedirectUri($config[$key]['redirect_uris'][0]);
1013 $this->setClientId($config['client_id']);
1014 $this->setClientSecret($config['client_secret']);
1015 if (isset($config['redirect_uris'])) {
1016 $this->setRedirectUri($config['redirect_uris'][0]);
1028 $this->config['subject'] = $subject;
1075 'issuer' => $this->config['client_id'],
1076 'signingKey' => $this->config['signing_key'],
1077 'signingAlgorithm' => $this->config['signing_algorithm'],
1110 $this->config['cache_config'] = $cacheConfig;
1182 $this->config['api_format_v2'] = (bool) $value;
1196 'base_url' => $this->config['base_path'],
1207 'base_uri' => $this->config['base_path'],
1223 $sub = $this->config['subject'];
1224 $signingKey = $this->config['signing_key'];
1229 'client_id' => $this->config['client_id'],
1230 'client_email' => $this->config['client_email'],
1233 'quota_project_id' => $this->config['quota_project'],
1246 $sub ? null : $this->config['cache_config'],
1248 $this->config['quota_project']
1266 $this->config['cache_config'],
1282 $this->config['cache_config']