Automattic\WooCommerce\Internal\PushNotifications\Services
NotificationProcessor::init
Initialize dependencies.
Метод класса: NotificationProcessor{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$NotificationProcessor = new NotificationProcessor(); $NotificationProcessor->init( $dispatcher, $data_store, $preferences_service, $retry_handler ): void;
- $dispatcher(WpcomNotificationDispatcher) (обязательный)
- The WPCOM dispatcher.
- $data_store(PushTokensDataStore) (обязательный)
- The push tokens data store.
- $preferences_service(NotificationPreferencesService) (обязательный)
- The notification preferences service.
- $retry_handler(NotificationRetryHandler) (обязательный)
- The retry handler.
Список изменений
| С версии 10.7.0 | Введена. |
Код NotificationProcessor::init() NotificationProcessor::init WC 11.2.2
final public function init(
WpcomNotificationDispatcher $dispatcher,
PushTokensDataStore $data_store,
NotificationPreferencesService $preferences_service,
NotificationRetryHandler $retry_handler
): void {
$this->dispatcher = $dispatcher;
$this->data_store = $data_store;
$this->preferences_service = $preferences_service;
$this->retry_handler = $retry_handler;
}