Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OrderAttributionServiceProvider::register()publicWC 1.0

Register the classes.

Метод класса: OrderAttributionServiceProvider{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$OrderAttributionServiceProvider = new OrderAttributionServiceProvider();
$OrderAttributionServiceProvider->register();

Код OrderAttributionServiceProvider::register() WC 9.6.0

public function register() {
	$this->share_with_implements_tags( WPConsentAPI::class );
	$this->share_with_implements_tags( OrderAttributionController::class )
		->addArguments(
			array(
				LegacyProxy::class,
				FeaturesController::class,
				WPConsentAPI::class,
			)
		);
	$this->share_with_implements_tags( OrderAttributionBlocksController::class )
		->addArguments(
			array(
				StoreApi::container()->get( ExtendSchema::class ),
				FeaturesController::class,
				OrderAttributionController::class,
			)
		);
}