Automattic\WooCommerce\Internal\Orders

OrderAttributionBlocksController::initpublicWC 1.0

Bind dependencies on init.

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

Хуков нет.

Возвращает

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

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

$OrderAttributionBlocksController = new OrderAttributionBlocksController();
$OrderAttributionBlocksController->init( $extend_schema, $features_controller, $order_attribution_controller );
$extend_schema(ExtendSchema) (обязательный)
ExtendSchema instance.
$features_controller(FeaturesController) (обязательный)
Features controller.
$order_attribution_controller(OrderAttributionController) (обязательный)
Instance of the order attribution controller.

Код OrderAttributionBlocksController::init() WC 10.7.0

final public function init(
	ExtendSchema $extend_schema,
	FeaturesController $features_controller,
	OrderAttributionController $order_attribution_controller
) {
	$this->extend_schema                = $extend_schema;
	$this->features_controller          = $features_controller;
	$this->order_attribution_controller = $order_attribution_controller;
}