mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +01:00
parent
fe53541800
commit
cea4d73dd3
@ -70,6 +70,14 @@ You can even log queries from multiple `PDO` connections:
|
||||
$pdoCollector->addConnection($pdoWrite, 'write-db');
|
||||
|
||||
$debugbar->addCollector($pdoCollector);
|
||||
|
||||
If you want to see your PDO requests in the TimeDataCollector, you must add the PDOConnector to the $debugbar _first_
|
||||
|
||||
$timeDataCollector = new DebugBar\DataCollector\TimeDataCollector();
|
||||
$pdoCollector = new DebugBar\DataCollector\PDO\PDOCollector($pdo, $timeDataCollector);
|
||||
|
||||
$debugBar->addCollector($pdoCollector);
|
||||
$debugBar->addCollector($timeDataCollector);
|
||||
|
||||
## RequestData
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user