1
0
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:
GuimDev 2013-12-24 13:10:42 +01:00
parent 463259abce
commit eae876a2eb

View File

@ -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;
}