WP_CLI\Bootstrap
LaunchRunner{}└─ BootstrapStep
Class LaunchRunner.
Kick off the Runner object that starts the actual commands.
Хуков нет.
Использование
$LaunchRunner = new LaunchRunner(); // use class methods
Методы
Заметки
- Пакет: WP_CLI\Bootstrap
Код LaunchRunner{} LaunchRunner{} WP-CLI 2.13.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;
}
}