ApiStatusService
class ApiStatusService (View source)
Tracks the most recent PowerDNS API error so the UI can surface it.
Session-backed so admins see a banner on the dashboard after a failing request without having to tail log files. Cleared on the next successful request.
Constants
| private SESSION_KEY |
|
Methods
void
recordError(string $message, array $context = [])
No description
void
clearError()
No description
array|null
getLastError()
No description
Details
void
recordError(string $message, array $context = [])
No description
void
clearError()
No description
array|null
getLastError()
No description