<?php
/**
* Debug API CLI for LiteSpeed integration.
*
* @package LiteSpeed\CLI
*/
namespace LiteSpeed\CLI;
defined( 'WPINC' ) || exit();
use LiteSpeed\Debug2;
use LiteSpeed\Report;
use WP_CLI;
/**
* Debug API CLI
*/
class Debug {
/**
* Report instance.
*
* @var Report
*/
private $report;
/**
* Constructor for Debug CLI.
*/
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 );
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| crawler.cls.php | 2026-06-06 16:18 | 5.85 KB | 76129f60960:kunden | -xw-x----- | |
| database.cls.php | 2026-06-06 16:18 | 4.96 KB | 76129f60960:kunden | -xw-x----- | |
| debug.cls.php | 2026-06-06 16:18 | 718 B | 76129f60960:kunden | -xw-x----- | |
| image.cls.php | 2026-06-06 16:18 | 3.68 KB | 76129f60960:kunden | -xw-x----- | |
| online.cls.php | 2026-06-06 16:18 | 9 KB | 76129f60960:kunden | -xw-x----- | |
| option.cls.php | 2026-06-06 16:18 | 10.11 KB | 76129f60960:kunden | -xw-x----- | |
| presets.cls.php | 2026-06-06 16:18 | 1.83 KB | 76129f60960:kunden | -xw-x----- | |
| purge.cls.php | 2026-06-06 16:18 | 7.06 KB | 76129f60960:kunden | -xw-x----- | |