Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

COTMigrationServiceProvider{}WC 1.0

Class COTMigrationServiceProvider

Хуков нет.

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

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

Методы

  1. public register()

Заметки

  • Пакет: Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

Код COTMigrationServiceProvider{} WC 6.6.1

class COTMigrationServiceProvider extends AbstractServiceProvider {

	/**
	 * Services provided by this provider.
	 *
	 * @var string[]
	 */
	protected $provides = array(
		PostsToOrdersMigrationController::class,
		CLIRunner::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 );
	}
}