WP_CLI::get_configurator()public staticWP-CLI 1.0

Get the Configurator instance

Method of the class: WP_CLI{}

No Hooks.

Return

Configurator.

Usage

$result = WP_CLI::get_configurator();

WP_CLI::get_configurator() code WP-CLI 2.7.0-alpha

public static function get_configurator() {
	static $configurator;

	if ( ! $configurator ) {
		$configurator = new Configurator( WP_CLI_ROOT . '/php/config-spec.php' );
	}

	return $configurator;
}