WP_CLI\Bootstrap
LaunchRunner::process
Process this single bootstrapping step.
Method of the class: LaunchRunner{}
No Hooks.
Returns
BootstrapState. Modified state to pass to the next step.
Usage
$LaunchRunner = new LaunchRunner(); $LaunchRunner->process( $state );
- $state(BootstrapState) (required)
- Contextual state to pass into the step.
LaunchRunner::process() LaunchRunner::process code WP-CLI 2.13.0-alpha
public function process( BootstrapState $state ) {
$runner = new RunnerInstance();
$runner()->register_context_manager(
$state->getValue( 'context_manager' )
);
$runner()->start();
return $state;
}