Fixed: basePath self→static binding, namespace detection, event wiring,
SQLite cache, file cache driver. All Mod Boot classes converted to
$listens pattern for lifecycle event discovery.
Working endpoints:
- /v1/explorer/info — live chain height, difficulty, aliases
- /v1/explorer/stats — formatted chain statistics
- /v1/names/directory — alias directory grouped by type
- /v1/names/available/{name} — name availability check
- /v1/names/lookup/{name} — name details
Co-Authored-By: Charon <charon@lethean.io>
23 lines
519 B
PHP
23 lines
519 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Core\Plug\Contract;
|
|
|
|
use Core\Plug\Response;
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Contract for content publishing operations.
|
|
*/
|
|
interface Postable
|
|
{
|
|
/**
|
|
* Publish content to the platform.
|
|
*
|
|
* @param string $text Post content
|
|
* @param Collection $media Media items (may be empty)
|
|
* @param array $params Platform-specific options
|
|
*/
|
|
public function publish(string $text, Collection $media, array $params = []): Response;
|
|
}
|