WP_CLI\Bootstrap

InitializeLogger::process()publicWP-CLI 1.0

Process this single bootstrapping step.

Method of the class: InitializeLogger{}

No Hooks.

Return

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() code WP-CLI 2.8.0-alpha

public function process( BootstrapState $state ) {
	$this->declare_loggers();
	$runner = new RunnerInstance();
	$runner()->init_logger();

	return $state;
}