Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders

BatchProcessingServiceProvider{}WC 1.0

Class BatchProcessingServiceProvider

Хуков нет.

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

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

Методы

  1. public register()

Заметки

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

Код BatchProcessingServiceProvider{} WC 9.3.3

class BatchProcessingServiceProvider extends AbstractInterfaceServiceProvider {

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