Automattic\WooCommerce\Internal\CLI\Migrator\Commands
SetupCommand::init
Initialize the command with its dependencies.
Method of the class: SetupCommand{}
No Hooks.
Returns
null. Nothing (null).
Usage
$SetupCommand = new SetupCommand(); $SetupCommand->init( $credential_manager, $platform_registry ): void;
- $credential_manager(CredentialManager) (required)
- The credential manager.
- $platform_registry(PlatformRegistry) (required)
- The platform registry.
SetupCommand::init() SetupCommand::init code WC 10.9.4
final public function init( CredentialManager $credential_manager, PlatformRegistry $platform_registry ): void {
$this->credential_manager = $credential_manager;
$this->platform_registry = $platform_registry;
}