WP_CLI\Loggers

Base::get_runnerprotectedWP-CLI 1.0

Retrieve the runner instance from the base CLI object. This facilitates unit testing, where the WP_CLI instance isn't available

Method of the class: Base{}

No Hooks.

Returns

Runner. Instance of the runner class

Usage

// protected - for code of main (parent) or child class
$result = $this->get_runner();

Base::get_runner() code WP-CLI 2.13.0-alpha

protected function get_runner() {
	return WP_CLI::get_runner();
}