Automattic\WooCommerce\Internal\BatchProcessing

BatchProcessingController::__construct()publicWC 1.0

BatchProcessingController constructor.

Schedules the necessary actions to process batches.

Method of the class: BatchProcessingController{}

No Hooks.

Return

null. Nothing (null).

Usage

$BatchProcessingController = new BatchProcessingController();
$BatchProcessingController->__construct();

BatchProcessingController::__construct() code WC 8.7.0

public function __construct() {
	add_action(
		self::WATCHDOG_ACTION_NAME,
		function () {
			$this->handle_watchdog_action();
		}
	);

	add_action(
		self::PROCESS_SINGLE_BATCH_ACTION_NAME,
		function ( $batch_process ) {
			$this->process_next_batch_for_single_processor( $batch_process );
		},
		10,
		2
	);

	$this->logger = wc_get_logger();
}