- WIP on a new TaksReport object
This commit is contained in:
1 parent
5a737c06c4
commit
38df94fc2a
5 files changed
+94
-9
No files matched your search
@@ -13,7 +13,7 @@ class TaskHandler {
|
||||
$this->dataManipulator = $dataManipulator;
|
||||
}
|
||||
|
||||
public function sendReport(string $message, ? string $title = null, array $data = []) : array
|
||||
public function sendReport(string $message, ? string $title = null, array $data = [], array $events = []) : array
|
||||
{
|
||||
$backtrace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||
array_shift($backtrace);
|
||||
@@ -36,6 +36,7 @@ class TaskHandler {
|
||||
'request_body' => json_encode($_POST),
|
||||
'remote_addr' => $_SERVER['REMOTE_ADDR'] ?? null,
|
||||
],
|
||||
'events' => $events,
|
||||
];
|
||||
|
||||
if ( $this->dataManipulator ?? false ) {
|
||||
|
||||
Reference in new issue
Block a user