Automattic\WooCommerce\Internal\PushNotifications\Controllers

NotificationPreferencesRestController::initpublicWC 10.8.0

Initialize injected dependencies.

Method of the class: NotificationPreferencesRestController{}

No Hooks.

Returns

null. Nothing (null).

Usage

$NotificationPreferencesRestController = new NotificationPreferencesRestController();
$NotificationPreferencesRestController->init( $preferences_service ): void;
$preferences_service(NotificationPreferencesService) (required)
The preferences service.

Changelog

Since 10.8.0 Introduced.

NotificationPreferencesRestController::init() code WC 10.9.1

final public function init( NotificationPreferencesService $preferences_service ): void {
	$this->preferences_service = $preferences_service;
}