Automattic\WooCommerce\Blocks\Shipping

ShippingController::__construct()publicWC 1.0

Constructor.

Method of the class: ShippingController{}

No Hooks.

Return

null. Nothing (null).

Usage

$ShippingController = new ShippingController();
$ShippingController->__construct( $asset_api, $asset_data_registry );
$asset_api(AssetApi) (required)
Instance of the asset API.
$asset_data_registry(AssetDataRegistry) (required)
Instance of the asset data registry.

ShippingController::__construct() code WC 9.0.1

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();
}