WP_CLI\Bootstrap
LaunchRunner::process
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() LaunchRunner::process 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;
}