Skip to content

Commit 2679dba

Browse files
committed
Add Request Method to collect
1 parent 844f05a commit 2679dba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DebugBar/DebugBar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public function collect()
205205
'id' => $this->getCurrentRequestId(),
206206
'datetime' => date('Y-m-d H:i:s'),
207207
'utime' => microtime(true),
208+
'method' => isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : null,
208209
'uri' => isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : null,
209210
'ip' => isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : null
210211
)

0 commit comments

Comments
 (0)