WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

Automattic\WooCommerce\Blocks\Domain

Bootstrap::register_dependencies() protected WC 1.0

Register core dependencies with the container.

{} Это метод класса: Bootstrap{}

Хуков нет.

Возвращает

Null. Ничего.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->register_dependencies();

Код Bootstrap::register_dependencies() WC 4.7.1

<?php
protected function register_dependencies() {
	$this->container->register(
		AssetApi::class,
		function ( Container $container ) {
			return new AssetApi( $container->get( Package::class ) );
		}
	);
	$this->container->register(
		AssetDataRegistry::class,
		function( Container $container ) {
			$asset_api        = $container->get( AssetApi::class );
			$load_back_compat = defined( 'WC_ADMIN_VERSION_NUMBER' )
				&& version_compare( WC_ADMIN_VERSION_NUMBER, '0.19.0', '<=' );
			return $load_back_compat
				? new BackCompatAssetDataRegistry( $asset_api )
				: new AssetDataRegistry( $asset_api );
		}
	);
	$this->container->register(
		PaymentMethodRegistry::class,
		function( Container $container ) {
			return new PaymentMethodRegistry();
		}
	);
	$this->container->register(
		PaymentsApi::class,
		function ( Container $container ) {
			$payment_method_registry = $container->get( PaymentMethodRegistry::class );
			$asset_data_registry     = $container->get( AssetDataRegistry::class );
			return new PaymentsApi( $payment_method_registry, $asset_data_registry );
		}
	);
	$this->container->register(
		RestApi::class,
		function ( Container $container ) {
			return new RestApi();
		}
	);
	$this->container->register(
		Installer::class,
		function ( Container $container ) {
			return new Installer();
		}
	);
	$this->container->register(
		DraftOrders::class,
		function( Container $container ) {
			return new DraftOrders( $container->get( Package::class ) );
		}
	);
	$this->container->register(
		CreateAccount::class,
		function( Container $container ) {
			return new CreateAccount( $container->get( Package::class ) );
		}
	);
}