Skip to content

Commit a114bde

Browse files
committed
Added PHP_SAPI in Php data collector
It is important to know how the php is running from cli or a web request.
1 parent 1ef8e14 commit a114bde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DebugBar/DataCollector/PhpInfoCollector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class PhpInfoCollector extends DataCollector
1818
public function collect()
1919
{
2020
return array(
21-
'version' => PHP_VERSION
21+
'version' => PHP_VERSION,
22+
'interface' => PHP_SAPI
2223
);
2324
}
2425

0 commit comments

Comments
 (0)