3 events in this category
Callback parameters: string command, array execution data.
This event receives the following data when emitted:
Emitted from:
backend/app/Controllers/Admin/ConsoleController.phpuse App\Plugins\PluginEvents;
use App\Plugins\Events\Events\ConsoleEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(ConsoleEvent::onCommandExecuted(), function ($command, $executedBy, $executionTime, $returnCode, $workingDirectory) {
// Handle stormnodes:admin:console:command:executed
// Data keys: command, executed_by, execution_time, return_code, working_directory
});
}Callback parameters: string error message, array context.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\ConsoleEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(ConsoleEvent::onConsoleError(), function ($message, $context) {
// Handle stormnodes:admin:console:error
// Parameters: string error message, array context.
});
}Callback parameters: array system info.
use App\Plugins\PluginEvents;
use App\Plugins\Events\Events\ConsoleEvent;
public static function processEvents(PluginEvents $evt): void
{
$evt->on(ConsoleEvent::onSystemInfoRetrieved(), function ($info) {
// Handle stormnodes:admin:console:system_info:retrieved
// Parameters: array system info.
});
}