Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

COTMigrationServiceProvider{}WC 1.0

Class COTMigrationServiceProvider

No Hooks.

Usage

$COTMigrationServiceProvider = new COTMigrationServiceProvider();
// use class methods

Methods

  1. public register()

Notes

  • Package: Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

Code of COTMigrationServiceProvider{} WC 7.1.0

class COTMigrationServiceProvider extends AbstractServiceProvider {

	/**
	 * Services provided by this provider.
	 *
	 * @var string[]
	 */
	protected $provides = array(
		PostsToOrdersMigrationController::class,
		CLIRunner::class,
		DataSynchronizer::class,
	);

	/**
	 * Use the register method to register items with the container via the
	 * protected $this->leagueContainer property or the `getLeagueContainer` method
	 * from the ContainerAwareTrait.
	 *
	 * @return void
	 */
	public function register() {
		$this->share( PostsToOrdersMigrationController::class );
	}
}