mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +01:00
Use param of JavascriptRenderer constructor.
I add baseUrl, basePath parameters to getJavascriptRenderer(...) for increased use speed. Save two lines of code. I am lazy :)
This commit is contained in:
parent
463259abce
commit
eae876a2eb
@ -416,12 +416,14 @@ class DebugBar implements ArrayAccess
|
||||
/**
|
||||
* Returns a JavascriptRenderer for this instance
|
||||
*
|
||||
* @param stri $baseUrl
|
||||
* @param string $basePathng
|
||||
* @return JavascriptRenderer
|
||||
*/
|
||||
public function getJavascriptRenderer()
|
||||
public function getJavascriptRenderer($baseUrl = null, $basePath = null)
|
||||
{
|
||||
if ($this->jsRenderer === null) {
|
||||
$this->jsRenderer = new JavascriptRenderer($this);
|
||||
$this->jsRenderer = new JavascriptRenderer($this, $baseUrl, $basePath);
|
||||
}
|
||||
return $this->jsRenderer;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user