1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 05:18:32 +01:00

Update docs for PDOConnector (#305)

see #299
This commit is contained in:
Steve Pavarno 2016-11-29 07:59:25 +13:00 committed by Barry vd. Heuvel
parent fe53541800
commit cea4d73dd3

View File

@ -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