Add route info to debug bar
This commit is contained in:
parent
9af922f3f1
commit
50fe879f16
3 changed files with 52 additions and 2 deletions
|
@ -9,6 +9,7 @@ use DebugBar\DataCollector\PhpInfoCollector;
|
|||
use DebugBar\DataCollector\RequestDataCollector;
|
||||
use DebugBar\DebugBar;
|
||||
use DebugBar\DebugBarException;
|
||||
use Kitchenu\Debugbar\DataCollector\SlimRouteCollector;
|
||||
use Slim\Container;
|
||||
|
||||
/**
|
||||
|
@ -34,7 +35,8 @@ class DebugBarFactory
|
|||
->addCollector(new MessagesCollector())
|
||||
->addCollector($requestCollector)
|
||||
->addCollector(new MemoryCollector())
|
||||
->addCollector($configCollector);
|
||||
->addCollector($configCollector)
|
||||
->addCollector(new SlimRouteCollector($container->get('router'), $container->get('request')));
|
||||
|
||||
$container->get('logger')->add('debugbar', $debugBar->getCollector('messages'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue