Skip to content

Commit 43aee7a

Browse files
committed
Allow show Config in the debugbar
1 parent 55eae75 commit 43aee7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/App.php

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
use Framework\CLI\Command;
2020
use Framework\CLI\Console;
2121
use Framework\Config\Config;
22+
use Framework\Config\Debug\ConfigCollection;
23+
use Framework\Config\Debug\ConfigCollector;
2224
use Framework\Database\Database;
2325
use Framework\Database\Debug\DatabaseCollection;
2426
use Framework\Database\Debug\DatabaseCollector;
@@ -141,6 +143,11 @@ public function __construct(
141143
$collection = new AppCollection('App');
142144
$collection->addCollector(static::$debugCollector);
143145
static::debugger()->addCollection($collection);
146+
$configCollector = new ConfigCollector();
147+
static::$config->setDebugCollector($configCollector);
148+
$configCollection = new ConfigCollection('Config');
149+
$configCollection->addCollector($configCollector);
150+
static::debugger()->addCollection($configCollection);
144151
}
145152
}
146153

0 commit comments

Comments
 (0)