Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

OrdersDataStoreServiceProvider::register()publicWC 1.0

Register the classes.

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

No Hooks.

Return

null. Nothing.

Usage

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

Код OrdersDataStoreServiceProvider::register() WC 7.1.0

public function register() {
	$this->share( OrdersTableDataStoreMeta::class );

	$this->share( OrdersTableDataStore::class )->addArguments( array( OrdersTableDataStoreMeta::class, DatabaseUtil::class, LegacyProxy::class ) );
	$this->share( DataSynchronizer::class )->addArguments( array( OrdersTableDataStore::class, DatabaseUtil::class, PostsToOrdersMigrationController::class, LegacyProxy::class ) );
	$this->share( OrdersTableRefundDataStore::class )->addArguments( array( OrdersTableDataStoreMeta::class, DatabaseUtil::class, LegacyProxy::class ) );
	$this->share( CustomOrdersTableController::class )->addArguments(
		array(
			OrdersTableDataStore::class,
			DataSynchronizer::class,
			OrdersTableRefundDataStore::class,
			BatchProcessingController::class,
			FeaturesController::class,
		)
	);

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