Yoast\WP\SEO\MyYoast_Client\Application

OAuth_Grant_Handler::__constructpublicYoast 1.0

OAuth_Grant_Handler constructor.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$OAuth_Grant_Handler = new OAuth_Grant_Handler();
$OAuth_Grant_Handler->__construct( $discovery, $client_registration, $client_authenticator, $oauth_server_client );
$discovery(Discovery_Interface) (обязательный)
The discovery port.
$client_registration(Client_Registration_Interface) (обязательный)
The client registration port.
$client_authenticator(Client_Authenticator_Interface) (обязательный)
The client authenticator port.
$oauth_server_client(OAuth_Server_Client_Interface) (обязательный)
The token endpoint client port.

Код OAuth_Grant_Handler::__construct() Yoast 27.7

public function __construct(
	Discovery_Interface $discovery,
	Client_Registration_Interface $client_registration,
	Client_Authenticator_Interface $client_authenticator,
	OAuth_Server_Client_Interface $oauth_server_client
) {
	$this->discovery            = $discovery;
	$this->client_registration  = $client_registration;
	$this->client_authenticator = $client_authenticator;
	$this->oauth_server_client  = $oauth_server_client;
	$this->logger               = new NullLogger();
}