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>
45 lines
1 KiB
PHP
45 lines
1 KiB
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\Events;
|
|
|
|
/**
|
|
* Fired when the application runs in console/CLI context.
|
|
*
|
|
* Modules listen to this event to register Artisan commands for CLI operations
|
|
* such as maintenance tasks, data processing, or administrative functions.
|
|
*
|
|
* ## When This Event Fires
|
|
*
|
|
* Fired when the application is invoked via `php artisan`, not during web
|
|
* requests. This allows modules to only register commands when actually needed.
|
|
*
|
|
* ## Usage Example
|
|
*
|
|
* ```php
|
|
* public static array $listens = [
|
|
* ConsoleBooting::class => 'onConsole',
|
|
* ];
|
|
*
|
|
* public function onConsole(ConsoleBooting $event): void
|
|
* {
|
|
* $event->command(ProcessOrdersCommand::class);
|
|
* $event->command(SyncInventoryCommand::class);
|
|
* }
|
|
* ```
|
|
*
|
|
*
|
|
* @see QueueWorkerBooting For queue worker specific initialization
|
|
*/
|
|
class ConsoleBooting extends LifecycleEvent
|
|
{
|
|
//
|
|
}
|