Yoast\WP\SEO\AI\Content_Planner\Application
Content_Suggestion_Command_Handler::__construct
The constructor.
Метод класса: Content_Suggestion_Command_Handler{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Content_Suggestion_Command_Handler = new Content_Suggestion_Command_Handler(); $Content_Suggestion_Command_Handler->__construct( $recent_content_collector, $ai_request_sender_factory, $consent_handler, $category_repository );
- $recent_content_collector(Recent_Content_Collector) (обязательный)
- The recent content collector.
- $ai_request_sender_factory(AI_Request_Sender_Factory) (обязательный)
- The auth strategy factory.
- $consent_handler(Consent_Handler) (обязательный)
- The consent handler.
- $category_repository(Category_Repository_Interface) (обязательный)
- The category repository.
Код Content_Suggestion_Command_Handler::__construct() Content Suggestion Command Handler:: construct Yoast 28.9
public function __construct(
Recent_Content_Collector $recent_content_collector,
AI_Request_Sender_Factory $ai_request_sender_factory,
Consent_Handler $consent_handler,
Category_Repository_Interface $category_repository
) {
$this->recent_content_collector = $recent_content_collector;
$this->ai_request_sender_factory = $ai_request_sender_factory;
$this->consent_handler = $consent_handler;
$this->category_repository = $category_repository;
}