Automattic\WooCommerce\Internal\CLI\Migrator\Commands

ResetCommand::initpublicWC 1.0

Initialize the command with its dependencies.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$ResetCommand = new ResetCommand();
$ResetCommand->init( $credential_manager, $platform_registry ): void;
$credential_manager(CredentialManager) (обязательный)
The credential manager.
$platform_registry(PlatformRegistry) (обязательный)
The platform registry.

Код ResetCommand::init() WC 11.0.1

final public function init( CredentialManager $credential_manager, PlatformRegistry $platform_registry ): void {
	$this->credential_manager = $credential_manager;
	$this->platform_registry  = $platform_registry;
}