| 1 |
<?php |
| 2 |
/** |
| 3 |
* Controlled failure signal for the MCP CLI bridge. |
| 4 |
* |
| 5 |
* The \WP_CLI shim's error() throws this instead of halting the request, |
| 6 |
* so Cli_Bridge can catch it and return a structured error result. See |
| 7 |
* Cli_Shim. |
| 8 |
* |
| 9 |
* @package XSpeed |
| 10 |
*/ |
| 11 |
|
| 12 |
declare(strict_types=1); |
| 13 |
|
| 14 |
namespace XSpeed\Modules\Mcp; |
| 15 |
|
| 16 |
defined( 'ABSPATH' ) || exit; |
| 17 |
|
| 18 |
/** Thrown by the shim's error() so Cli_Bridge can catch a controlled failure. */ |
| 19 |
final class Cli_Error_Signal extends \RuntimeException {} |
| 20 |
|