We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c57c644 commit 1fd5af2Copy full SHA for 1fd5af2
src/DebugBar/DataCollector/PhpInfoCollector.php
@@ -13,8 +13,16 @@
13
/**
14
* Collects info about PHP
15
*/
16
-class PhpInfoCollector extends DataCollector
+class PhpInfoCollector extends DataCollector implements Renderable
17
{
18
+ /**
19
+ * @return string
20
+ */
21
+ public function getName()
22
+ {
23
+ return 'php';
24
+ }
25
+
26
27
* @return array
28
@@ -27,10 +35,18 @@ public function collect()
35
}
36
29
37
30
- * @return string
38
+ * {@inheritDoc}
31
39
32
- public function getName()
40
+ public function getWidgets()
33
41
34
- return 'php';
42
+ return [
43
+ "php_version" => [
44
+ "icon" => "code",
45
+ "tooltip" => "Version",
46
+ "map" => "php.version",
47
+ "default" => ""
48
+ ],
49
+ ];
50
51
52
0 commit comments