WP_CLI\Bootstrap

DeclareAbstractBaseCommand{}WP-CLI 1.0

Class DeclareAbstractBaseCommand.

Declares the abstract WP_CLI_Command base class.

Хуков нет.

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

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

Методы

  1. public process( BootstrapState $state )

Заметки

  • Пакет: WP_CLI\Bootstrap

Код DeclareAbstractBaseCommand{} WP-CLI 2.8.0-alpha

final class DeclareAbstractBaseCommand 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 ) {
		require_once WP_CLI_ROOT . '/php/class-wp-cli-command.php';

		return $state;
	}
}