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>
795 B
795 B
Front/Web/Middleware
HTTP middleware for public web requests.
Files
- FindDomainRecord.php -- Resolves the current workspace from the incoming domain. Sets
workspace_modelandworkspaceattributes on the request. Core domains (base domain, www, localhost) pass through. Checks custom domains first, then subdomain slugs. RequiresCore\Tenantmodule. - RedirectIfAuthenticated.php -- Redirects logged-in users away from guest-only pages (e.g., login). Redirects to
/on the current domain instead of a global dashboard route. - ResilientSession.php -- Catches session corruption (decryption errors, DB failures) and recovers gracefully by clearing cookies and retrying. Prevents 503 errors from APP_KEY changes or session table issues. Returns JSON for AJAX requests.