WP_CLI\Bootstrap

LaunchRunner::process()publicWP-CLI 1.0

Process this single bootstrapping step.

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

Хуков нет.

Возвращает

BootstrapState. Modified state to pass to the next step.

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

$LaunchRunner = new LaunchRunner();
$LaunchRunner->process( $state );
$state(BootstrapState) (обязательный)
Contextual state to pass into the step.

Код LaunchRunner::process() WP-CLI 2.8.0-alpha

public function process( BootstrapState $state ) {
	$runner = new RunnerInstance();

	$runner()->register_context_manager(
		$state->getValue( 'context_manager' )
	);

	$runner()->start();

	return $state;
}