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

Merge pull request #1 from mpoiriert/master

Basic loading into frosting
This commit is contained in:
Maxime Bouroumeau-Fuseau 2013-06-09 00:20:09 -07:00
commit 2d4d840d21
2 changed files with 26 additions and 0 deletions

20
frosting.json Normal file
View File

@ -0,0 +1,20 @@
{
"services": {
"debugBar": {
"class": "DebugBar\\StandardDebugBar"
},
"debugBarRenderer": {
"class": "DebugBar\\Renderer\\JavascriptRenderer",
"configuration": {
"baseUrl": "/frosting/asset/debugBar"
}
},
"assetCopier": {
"configuration": {
"toMirror": {
"debugBar": {"source":"<?php echo str_replace('\\','/',__DIR__ . '/web') ?>"}
}
}
}
}
}

View File

@ -26,6 +26,12 @@ class JavascriptRenderer
protected $toolbarVariableName = 'phpdebugbar';
/**
* @param \DebugBar\DebugBar $debugBar
* @param string $baseUrl
*
* @Inject(debugBar="debugBar", baseUrl="$[debugBarRenderer][baseUrl]")
*/
public function __construct(DebugBar $debugBar, $baseUrl = '/')
{
$this->debugBar = $debugBar;