HEX
Server: Apache
System: Linux iad1-shared-b8-22 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: dh_7uh9vd (6523960)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/dh_7uh9vd/lifeofcanada.com/wp-content/plugins/dreamhost-automated-migration/wp_cli.php
<?php
if (!defined('ABSPATH')) exit;
if (!class_exists('DHWPCli')) :

require_once dirname( __FILE__ ) . '/recover.php';

class DHWPCli {
  public $settings;
  public $siteinfo;
  public $bvinfo;
  public $bvapi;

  public function __construct($settings, $bvinfo, $bvsiteinfo, $bvapi) {
    $this->settings = $settings;
    $this->siteinfo = $bvsiteinfo;
    $this->bvinfo = $bvinfo;
    $this->bvapi = $bvapi;
  }

  public function get_connection_key() {
    WP_CLI::line($this->bvinfo->getConnectionKey());
  }

  public function refresh_connection_key() {
    DHRecover::refreshDefaultSecret($this->settings);
    WP_CLI::success('Key Refreshed Successfully.');
  }

}
endif;