WP_CLI\Bootstrap

InitializeColorization{}WP-CLI 1.0

Class InitializeColorization.

Initialize the colorization through the WP_CLI\Runner object.

No Hooks.

Usage

$InitializeColorization = new InitializeColorization();
// use class methods

Methods

  1. public process( BootstrapState $state )

Notes

  • Package: WP_CLI\Bootstrap

InitializeColorization{} code WP-CLI 2.8.0-alpha

final class InitializeColorization implements BootstrapStep {

	/**
	 * Process this single bootstrapping step.
	 *
	 * @param BootstrapState $state Contextual state to pass into the step.
	 *
	 * @return BootstrapState Modified state to pass to the next step.
	 */
	public function process( BootstrapState $state ) {
		$runner = new RunnerInstance();
		$runner()->init_colorization();

		return $state;
	}
}