Automattic\WooCommerce\Internal\Orders

OrderAttributionController::init()publicWC 1.0

Initialization method.

Takes the place of the constructor within WooCommerce Dependency injection.

Метод класса: OrderAttributionController{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$OrderAttributionController = new OrderAttributionController();
$OrderAttributionController->init( $proxy, $controller, $consent );
$proxy(LegacyProxy) (обязательный)
The legacy proxy.
$controller(FeaturesController) (обязательный)
The feature controller.
$consent(WPConsentAPI) (обязательный)
The WPConsentAPI integration.

Код OrderAttributionController::init() WC 9.6.0

final public function init( LegacyProxy $proxy, FeaturesController $controller, WPConsentAPI $consent ) {
	$this->proxy              = $proxy;
	$this->feature_controller = $controller;
	$this->consent            = $consent;
	$this->logger             = $proxy->call_function( 'wc_get_logger' );
	$this->set_fields_and_prefix();
}