/**
  * Called at load time, hooks into WP core
  */
 public function __construct()
 {
     self::$instance = $this;
     if (is_admin()) {
         $this->admin = new WordPress_GitHub_Sync_Admin();
     }
     $this->controller = new WordPress_GitHub_Sync_Controller($this);
     if (defined('WP_CLI') && WP_CLI) {
         WP_CLI::add_command('wpghs', $this->cli());
     }
 }