Skip to content

Commit 4aecbab

Browse files
committed
feature #44483 [HttpKernel][WebProfilerBundle] adding xdebug_info page to webprofilerbundle (chr-hertel)
This PR was merged into the 6.1 branch. Discussion ---------- [HttpKernel][WebProfilerBundle] adding xdebug_info page to webprofilerbundle | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | n/a | License | MIT | Doc PR | n/a Had a pretty annoying day and thought this should be a thing ... ![Bildschirmfoto von 2021-12-06 21-03-05](https://user-images.githubusercontent.com/2852185/144915336-070cf62e-bd9d-428d-9c1b-5f762c191e19.png) Commits ------- 845f35f872 adding xdebug_info page to webprofilerbundle
2 parents eebd57e + ace1722 commit 4aecbab

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

DataCollector/ConfigDataCollector.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,21 @@ public function isDebug(): bool|string
195195
}
196196

197197
/**
198-
* Returns true if the XDebug is enabled.
198+
* Returns true if the Xdebug is enabled.
199199
*/
200-
public function hasXDebug(): bool
200+
public function hasXdebug(): bool
201201
{
202202
return $this->data['xdebug_enabled'];
203203
}
204204

205+
/**
206+
* Returns true if the function xdebug_info is available.
207+
*/
208+
public function hasXdebugInfo(): bool
209+
{
210+
return \function_exists('xdebug_info');
211+
}
212+
205213
/**
206214
* Returns true if APCu is enabled.
207215
*/

0 commit comments

Comments
 (0)