YoastSEO_Vendor\League\OAuth2\Client\Provider
AbstractProvider::getAllowedClientOptions() protected Yoast 1.0
Returns the list of options that can be passed to the HttpClient
{} Это метод класса: AbstractProvider{}
Хуков нет.
Возвращает
Массив
. The options to pass to the HttpClient constructor
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->getAllowedClientOptions( $options );
- $options(массив) (обязательный)
- An array of options to set on this provider.
php Options include `clientId`, `clientSecret`, `redirectUri`, and `state`. Individual providers may introduce more options, as needed.
Код AbstractProvider::getAllowedClientOptions() AbstractProvider::getAllowedClientOptions Yoast 16.1.1
protected function getAllowedClientOptions(array $options)
{
$client_options = ['timeout', 'proxy'];
// Only allow turning off ssl verification if it's for a proxy
if (!empty($options['proxy'])) {
$client_options[] = 'verify';
}
return $client_options;
}