Automattic\WooCommerce\Blocks\Shipping
ShippingController::__construct()
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() 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(); }