Automattic\WooCommerce\Blocks\Payments
Api::__construct() public WC 1.0
Constructor
{} Это метод класса: Api{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$Api = new Api(); $Api->__construct( $payment_method_registry, $asset_registry );
- $payment_method_registry(PaymentMethodRegistry) (обязательный)
- An instance of Payment Method Registry.
- $asset_registry(AssetDataRegistry) (обязательный)
- Used for registering data to pass along to the request.
Код Api::__construct() Api:: construct WC 5.2.2
public function __construct( PaymentMethodRegistry $payment_method_registry, AssetDataRegistry $asset_registry ) {
$this->payment_method_registry = $payment_method_registry;
$this->asset_registry = $asset_registry;
$this->init();
}