WP_CLI\Bootstrap
ConfigureRunner{}└─ BootstrapStep
Class ConfigureRunner.
Initialize the configuration for the WP_CLI\Runner object.
Хуков нет.
Использование
$ConfigureRunner = new ConfigureRunner(); // use class methods
Методы
Заметки
- Пакет: WP_CLI\Bootstrap
Код ConfigureRunner{} ConfigureRunner{} WP-CLI 2.13.0-alpha
final class ConfigureRunner 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()->init_config();
$state->setValue( 'config', $runner()->config );
$state->setValue( 'arguments', $runner()->arguments );
$state->setValue( 'assoc_args', $runner()->assoc_args );
return $state;
}
}