Yoast\WP\SEO\Config

Wincher_Client::__construct()publicYoast 1.0

Wincher_Client constructor.

Метод класса: Wincher_Client{}

Хуков нет.

Возвращает

null. Ничего.

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

$Wincher_Client = new Wincher_Client();
$Wincher_Client->__construct(;

Код Wincher_Client::__construct() Yoast 19.11

public function __construct(
	Options_Helper $options_helper,
	WP_Remote_Handler $wp_remote_handler
) {

	$provider = new Wincher_PKCE_Provider(
		[
			'clientId'                => 'yoast',
			'redirectUri'             => 'https://auth.wincher.com/yoast/setup',
			'urlAuthorize'            => 'https://auth.wincher.com/connect/authorize',
			'urlAccessToken'          => 'https://auth.wincher.com/connect/token',
			'urlResourceOwnerDetails' => 'https://api.wincher.com/beta/user',
			'scopes'                  => [ 'profile', 'account', 'websites:read', 'websites:write', 'offline_access' ],
			'scopeSeparator'          => ' ',
			'pkceMethod'              => 'S256',
		],
		[
			'httpClient' => new Client( [ 'handler' => $wp_remote_handler ] ),
		]
	);

	parent::__construct(
		self::TOKEN_OPTION,
		$provider,
		$options_helper
	);
}