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