mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
Merge pull request #1 from mpoiriert/master
Basic loading into frosting
This commit is contained in:
commit
2d4d840d21
20
frosting.json
Normal file
20
frosting.json
Normal 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') ?>"}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user