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

Automattic\WooCommerce\Blocks\Domain

Bootstrap::register_dependencies() protected WC 1.0

Register core dependencies with the container.

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

Хуков нет.

Возвращает

null. Null. Ничего.

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

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

Код Bootstrap::register_dependencies() WC 5.1.0

<?php
protected function register_dependencies() {
	$this->container->register(
		FeatureGating::class,
		function ( Container $container ) {
			return new FeatureGating();
		}
	);
	$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( $container->get( RoutesController::class ) );
		}
	);
	$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 ) );
		}
	);
	$this->container->register(
		Formatters::class,
		function( Container $container ) {
			$formatters = new Formatters();
			$formatters->register( 'money', MoneyFormatter::class );
			$formatters->register( 'html', HtmlFormatter::class );
			$formatters->register( 'currency', CurrencyFormatter::class );
			return $formatters;
		}
	);
	$this->container->register(
		SchemaController::class,
		function( Container $container ) {
			return new SchemaController( $container->get( ExtendRestApi::class ) );
		}
	);
	$this->container->register(
		RoutesController::class,
		function( Container $container ) {
			return new RoutesController( $container->get( SchemaController::class ) );
		}
	);
	$this->container->register(
		ExtendRestApi::class,
		function( Container $container ) {
			return new ExtendRestApi( $container->get( Package::class ), $container->get( Formatters::class ) );
		}
	);
}