From 5e3720b6f6e80c7df912ea1f7eec543f5f7dcdda Mon Sep 17 00:00:00 2001 From: mpoiriert Date: Fri, 7 Jun 2013 23:30:37 -0400 Subject: [PATCH] [+] set copy path for asset --- frosting.json | 12 +++++++++++- src/DebugBar/Renderer/JavascriptRenderer.php | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/frosting.json b/frosting.json index de0b708..c3d8921 100644 --- a/frosting.json +++ b/frosting.json @@ -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":""} + } + } } } } diff --git a/src/DebugBar/Renderer/JavascriptRenderer.php b/src/DebugBar/Renderer/JavascriptRenderer.php index 9518e63..4f5ff6a 100644 --- a/src/DebugBar/Renderer/JavascriptRenderer.php +++ b/src/DebugBar/Renderer/JavascriptRenderer.php @@ -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 = '/') {