WP_CLI\Bootstrap
InitializeLogger::process()
Process this single bootstrapping step.
Метод класса: InitializeLogger{}
Хуков нет.
Возвращает
BootstrapState
. Modified state to pass to the next step.
Использование
$InitializeLogger = new InitializeLogger(); $InitializeLogger->process( $state );
- $state(BootstrapState) (обязательный)
- Contextual state to pass into the step.
Код InitializeLogger::process() InitializeLogger::process WP-CLI 2.8.0-alpha
public function process( BootstrapState $state ) { $this->declare_loggers(); $runner = new RunnerInstance(); $runner()->init_logger(); return $state; }