WP_CLI\Bootstrap

LaunchRunner{}WP-CLI 1.0

Class LaunchRunner.

Kick off the Runner object that starts the actual commands.

No Hooks.

Usage

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

Methods

  1. public process( BootstrapState $state )

Notes

  • Package: WP_CLI\Bootstrap

LaunchRunner{} code WP-CLI 2.8.0-alpha

final class LaunchRunner implements BootstrapStep {

	/**
	 * Process this single bootstrapping step.
	 *
	 * @param BootstrapState $state Contextual state to pass into the step.
	 *
	 * @return BootstrapState Modified state to pass to the next step.
	 */
	public function process( BootstrapState $state ) {
		$runner = new RunnerInstance();

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

		$runner()->start();

		return $state;
	}
}