Yoast\WP\SEO\MyYoast_Client\Application
MyYoast_Client::__construct
MyYoast_Client constructor.
Метод класса: MyYoast_Client{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$MyYoast_Client = new MyYoast_Client(); $MyYoast_Client->__construct( $client_registration, $auth_code_handler, $grant_handler, $revocation_handler, $http_client, $lock_helper, $token_storage, $user_token_storage, $site_url_provider );
- $client_registration(Client_Registration_Interface) (обязательный)
- The client registration port.
- $auth_code_handler(Authorization_Code_Handler) (обязательный)
- The authorization code handler.
- $grant_handler(OAuth_Grant_Handler) (обязательный)
- The OAuth grant handler.
- $revocation_handler(Token_Revocation_Handler) (обязательный)
- The token revocation handler.
- $http_client(OAuth_Server_Client_Interface) (обязательный)
- The OAuth server client port.
- $lock_helper(Lock_Helper) (обязательный)
- The lock helper.
- $token_storage(Token_Storage_Interface) (обязательный)
- The site-level token storage port.
- $user_token_storage(User_Token_Storage_Interface) (обязательный)
- The user-level token storage port.
- $site_url_provider(Site_URL_Provider_Interface) (обязательный)
- The site URL provider port.
Код MyYoast_Client::__construct() MyYoast Client:: construct Yoast 27.8
public function __construct(
Client_Registration_Interface $client_registration,
Authorization_Code_Handler $auth_code_handler,
OAuth_Grant_Handler $grant_handler,
Token_Revocation_Handler $revocation_handler,
OAuth_Server_Client_Interface $http_client,
Lock_Helper $lock_helper,
Token_Storage_Interface $token_storage,
User_Token_Storage_Interface $user_token_storage,
Site_URL_Provider_Interface $site_url_provider
) {
$this->client_registration = $client_registration;
$this->auth_code_handler = $auth_code_handler;
$this->grant_handler = $grant_handler;
$this->revocation_handler = $revocation_handler;
$this->http_client = $http_client;
$this->lock_helper = $lock_helper;
$this->token_storage = $token_storage;
$this->user_token_storage = $user_token_storage;
$this->site_url_provider = $site_url_provider;
$this->logger = new NullLogger();
}