Skip to content

Commit 47abaea

Browse files
authored
add addXdebugReplacements option (php-debugbar#552)
1 parent ec7d1ae commit 47abaea

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/DebugBar/DataCollector/DataCollector.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,16 @@ public function getXdebugReplacements()
289289
return $this->xdebugReplacements;
290290
}
291291

292+
/**
293+
* @param array $xdebugReplacements
294+
*/
295+
public function addXdebugReplacements($xdebugReplacements)
296+
{
297+
foreach ($xdebugReplacements as $serverPath => $replacement) {
298+
$this->setXdebugReplacement($serverPath, $replacement);
299+
}
300+
}
301+
292302
/**
293303
* @param array $xdebugReplacements
294304
*/
@@ -297,6 +307,10 @@ public function setXdebugReplacements($xdebugReplacements)
297307
$this->xdebugReplacements = $xdebugReplacements;
298308
}
299309

310+
/**
311+
* @param string $serverPath
312+
* @param string $replacement
313+
*/
300314
public function setXdebugReplacement($serverPath, $replacement)
301315
{
302316
$this->xdebugReplacements[$serverPath] = $replacement;

0 commit comments

Comments
 (0)