Automattic\WooCommerce\Internal\PushNotifications\Controllers
NotificationPreferencesRestController::init
Initialize injected dependencies.
Метод класса: NotificationPreferencesRestController{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$NotificationPreferencesRestController = new NotificationPreferencesRestController(); $NotificationPreferencesRestController->init( $preferences_service ): void;
- $preferences_service(NotificationPreferencesService) (обязательный)
- The preferences service.
Список изменений
| С версии 10.8.0 | Введена. |
Код NotificationPreferencesRestController::init() NotificationPreferencesRestController::init WC 11.2.1
final public function init( NotificationPreferencesService $preferences_service ): void {
$this->preferences_service = $preferences_service;
}