Automattic\WooCommerce\Internal\Orders
OrderAttributionController::init
Initialization method.
Takes the place of the constructor within WooCommerce Dependency injection.
Method of the class: OrderAttributionController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$OrderAttributionController = new OrderAttributionController(); $OrderAttributionController->init( $proxy, $controller, $consent );
- $proxy(LegacyProxy) (required)
- The legacy proxy.
- $controller(FeaturesController) (required)
- The feature controller.
- $consent(WPConsentAPI) (required)
- The WPConsentAPI integration.
OrderAttributionController::init() OrderAttributionController::init code WC 10.7.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();
}