PHP 8.2.30
Preview: debug.cls.php Size: 548 B
//usr/src/litespeed-wp-plugin/6.5.0.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
4.84 KB lrw-r--r-- 2024-09-06 21:23:56
Edit Download
548 B lrw-r--r-- 2024-09-06 21:23:56
Edit Download
3.28 KB lrw-r--r-- 2024-09-06 21:23:56
Edit Download
3.19 KB lrw-r--r-- 2024-09-06 21:23:56
Edit Download
8.61 KB lrw-r--r-- 2024-09-06 21:23:56
Edit Download
1.42 KB lrw-r--r-- 2024-09-06 21:23:56
Edit Download
6.66 KB lrw-r--r-- 2024-09-06 21:23:56
Edit Download

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