PHP 8.2.30
Preview: debug.cls.php Size: 544 B
/usr/src/litespeed-wp-plugin/7.2/litespeed-cache/cli/debug.cls.php

<?php
namespace LiteSpeed\CLI;

defined('WPINC') || exit();

use LiteSpeed\Debug2;
use LiteSpeed\Report;
use WP_CLI;

/**
 * Debug API CLI
 */
class Debug {

	private $__report;

	public function __construct() {
		Debug2::debug('CLI_Debug init');

		$this->__report = Report::cls();
	}

	/**
	 * Send report
	 *
	 * ## OPTIONS
	 *
	 * ## EXAMPLES
	 *
	 *     # Send env report to LiteSpeed
	 *     $ wp litespeed-debug send
	 */
	public function send() {
		$num = $this->__report->post_env();
		WP_CLI::success('Report Number = ' . $num);
	}
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
5.13 KB lrw-r--r-- 2025-06-18 22:15:22
Edit Download
544 B lrw-r--r-- 2025-06-18 22:15:22
Edit Download
3.30 KB lrw-r--r-- 2025-06-18 22:15:22
Edit Download
6.83 KB lrw-r--r-- 2025-06-18 22:15:22
Edit Download
8.94 KB lrw-r--r-- 2025-06-18 22:15:22
Edit Download
1.41 KB lrw-r--r-- 2025-06-18 22:15:22
Edit Download
6.68 KB lrw-r--r-- 2025-06-18 22:15:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).