WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

YoastSEO_Vendor\League\OAuth2\Client\Provider

AbstractProvider::__construct() public Yoast 1.0

Constructs an OAuth 2.0 service provider.

{} Это метод класса: AbstractProvider{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$AbstractProvider = new AbstractProvider();
$AbstractProvider->__construct( $options, $collaborators );
$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.
По умолчанию: []
$collaborators(массив)
An array of collaborators that may be used to
php override this provider's default behavior. Collaborators include `grantFactory`, `requestFactory`, and `httpClient`. Individual providers may introduce more collaborators, as needed.
По умолчанию: []

Код AbstractProvider::__construct() Yoast 15.3

<?php
public function __construct(array $options = [], array $collaborators = [])
{
    // We'll let the GuardedPropertyTrait handle mass assignment of incoming
    // options, skipping any blacklisted properties defined in the provider
    $this->fillProperties($options);
    if (empty($collaborators['grantFactory'])) {
        $collaborators['grantFactory'] = new \YoastSEO_Vendor\League\OAuth2\Client\Grant\GrantFactory();
    }
    $this->setGrantFactory($collaborators['grantFactory']);
    if (empty($collaborators['requestFactory'])) {
        $collaborators['requestFactory'] = new \YoastSEO_Vendor\League\OAuth2\Client\Tool\RequestFactory();
    }
    $this->setRequestFactory($collaborators['requestFactory']);
    if (empty($collaborators['httpClient'])) {
        $client_options = $this->getAllowedClientOptions($options);
        $collaborators['httpClient'] = new \YoastSEO_Vendor\GuzzleHttp\Client(\array_intersect_key($options, \array_flip($client_options)));
    }
    $this->setHttpClient($collaborators['httpClient']);
    if (empty($collaborators['optionProvider'])) {
        $collaborators['optionProvider'] = new \YoastSEO_Vendor\League\OAuth2\Client\OptionProvider\PostAuthOptionProvider();
    }
    $this->setOptionProvider($collaborators['optionProvider']);
}