Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
657 B
PHP
22 lines
657 B
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
namespace LIT\MCP\Integrations;
|
||
|
||
defined('ABSPATH') || exit;
|
||
|
||
/**
|
||
* An integration with boot steps of its own (hooks, REST routes, WP-CLI commands, admin tabs), so the composition
|
||
* root does not need to know them. IntegrationRegistry::boot() calls boot() whether or not the integration is
|
||
* available: Plugin boots on plugins_loaded, before the theme – isAvailable() cannot be asked yet.
|
||
*/
|
||
interface Bootable
|
||
{
|
||
/**
|
||
* Registers the integration's own hooks, routes, CLI commands and admin tabs. IntegrationRegistry::boot() calls it
|
||
* at most once per request.
|
||
*/
|
||
public function boot(): void;
|
||
}
|