Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OrdersDataStoreServiceProvider::register()publicWC 1.0

Register the classes.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код OrdersDataStoreServiceProvider::register() WC 6.6.1

public function register() {
	$this->share( DataSynchronizer::class )->addArguments( array( OrdersTableDataStore::class, DatabaseUtil::class, PostsToOrdersMigrationController::class ) );
	$this->share( CustomOrdersTableController::class )->addArguments( array( OrdersTableDataStore::class, DataSynchronizer::class ) );
	$this->share( OrdersTableDataStore::class );
	if ( Constants::is_defined( 'WP_CLI' ) && WP_CLI ) {
		$this->share( CLIRunner::class )->addArguments( array( CustomOrdersTableController::class, DataSynchronizer::class, PostsToOrdersMigrationController::class ) );
	}
}