1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-18 23:31:24 +02:00

Fix demo PDOCollector name, and update it with 72fea42 (#593)

This commit is contained in:
erikn69
2024-02-13 10:58:59 -05:00
committed by GitHub
parent 91f88d5e24
commit 43632b66d3

View File

@@ -7,7 +7,7 @@ use DebugBar\DataCollector\PDO\PDOCollector;
$pdo = new TraceablePDO(new PDO('sqlite::memory:'));
$debugbar->addCollector(new PDOCollector($pdo));
$debugbar['pdo']->setDurationBackground();
$debugbar['database']->setDurationBackground(true);
$pdo->exec('create table users (name varchar)');
$stmt = $pdo->prepare('insert into users (name) values (?)');