1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

[+] set copy path for asset

This commit is contained in:
mpoiriert 2013-06-07 23:30:37 -04:00
parent 150bc8f575
commit 5e3720b6f6
2 changed files with 12 additions and 2 deletions

View File

@ -4,7 +4,17 @@
"class": "DebugBar\\StandardDebugBar"
},
"debugBarRenderer": {
"class": "DebugBar\\Renderer\\JavascriptRenderer"
"class": "DebugBar\\Renderer\\JavascriptRenderer",
"configuration": {
"baseUrl": "/frosting/asset/debugBar"
}
},
"assetCopier": {
"configuration": {
"toMirror": {
"debugBar": {"source":"<?php echo __DIRNAME__ . '/web' ?>"}
}
}
}
}
}

View File

@ -30,7 +30,7 @@ class JavascriptRenderer
* @param \DebugBar\DebugBar $debugBar
* @param string $baseUrl
*
* @Inject(debugBar="debuBar", baseUrl="$[configuration][webDirectory]")
* @Inject(debugBar="debuBar", baseUrl="$[debugBarRenderer][baseUrl]")
*/
public function __construct(DebugBar $debugBar, $baseUrl = '/')
{