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>
42 lines
854 B
PHP
42 lines
854 B
PHP
<?php
|
|
|
|
/*
|
|
* Core PHP Framework
|
|
*
|
|
* Licensed under the European Union Public Licence (EUPL) v1.2.
|
|
* See LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Core\Front\Stdio;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
/**
|
|
* Stdio frontage - CLI/terminal stage.
|
|
*
|
|
* Handles stdin/stdout I/O for:
|
|
* - Artisan commands
|
|
* - MCP stdio transport (agents connecting via pipes)
|
|
* - Interactive CLI tools
|
|
*
|
|
* No HTTP middleware - this is a different transport entirely.
|
|
*/
|
|
class Boot extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
// Register console commands if running in console
|
|
if ($this->app->runningInConsole()) {
|
|
$this->commands([
|
|
// Core CLI commands registered here
|
|
]);
|
|
}
|
|
}
|
|
}
|