Automattic\WooCommerce\Blocks\Shipping

ShippingController::__construct()publicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

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

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

$ShippingController = new ShippingController();
$ShippingController->__construct( $asset_api, $asset_data_registry );
$asset_api(AssetApi) (обязательный)
Instance of the asset API.
$asset_data_registry(AssetDataRegistry) (обязательный)
Instance of the asset data registry.

Код ShippingController::__construct() WC 9.3.3

public function __construct( AssetApi $asset_api, AssetDataRegistry $asset_data_registry ) {
	$this->asset_api           = $asset_api;
	$this->asset_data_registry = $asset_data_registry;

	$this->local_pickup_enabled = LocalPickupUtils::is_local_pickup_enabled();
}