WP_CLI\Bootstrap

RunnerInstance::__invoke()publicWP-CLI 1.0

Return an instance of the WP_CLI\Runner object.

Includes necessary class files first as needed.

Метод класса: RunnerInstance{}

Хуков нет.

Возвращает

Runner.

Использование

$RunnerInstance = new RunnerInstance();
$RunnerInstance->__invoke();

Код RunnerInstance::__invoke() WP-CLI 2.8.0-alpha

public function __invoke() {
	if ( ! class_exists( 'WP_CLI\Runner' ) ) {
		require_once WP_CLI_ROOT . '/php/WP_CLI/Runner.php';
	}

	if ( ! class_exists( 'WP_CLI\Configurator' ) ) {
		require_once WP_CLI_ROOT . '/php/WP_CLI/Configurator.php';
	}

	return WP_CLI::get_runner();
}