SkynetMonitor

Skynet Monitor is a feature in Control Panel whitch allow you to displaying informations from your Event Listeners.
Every Event Listener can send multiple messages called "monits". All of monit will be displayed in monits area after request will send or response will receive.
If you want to create monit message in your Event Listener just use:

$this->addMonit($message);

where $message should be message string or array with string messages.

Example:

/src/SkynetUser/MyListener.php:
public function onRequest($context)
{
  if($context == "beforeSend")
  {
    $this->addMonit('1..2..preparing request...');
    $this->addMonit('3..4..preparing request...');
  }
}

Code above will display two monits:

- 1..2..preparing request...
- 3..4..preparing request...

in monitor area in Control Panel:


Full API Documentation is included in Skynet packages available on GitHub.