Skip to content

Commit

Permalink
Revert "Make PDOCollector easy to extend (#582)"
Browse files Browse the repository at this point in the history
This reverts commit 958ac08.
  • Loading branch information
barryvdh committed Feb 13, 2024
1 parent 43632b6 commit 8b1931f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/DebugBar/DataCollector/PDO/PDOCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,25 +204,23 @@ protected function collectPDO(TraceablePDO $pdo, TimeDataCollector $timeCollecto
*/
public function getName()
{
return 'database';
return 'pdo';
}

/**
* @return array
*/
public function getWidgets()
{
$name = $this->getName();

return array(
"$name" => array(
"database" => array(
"icon" => "database",
"widget" => "PhpDebugBar.Widgets.SQLQueriesWidget",
"map" => "$name",
"map" => "pdo",
"default" => "[]"
),
"$name:badge" => array(
"map" => "$name.nb_statements",
"database:badge" => array(
"map" => "pdo.nb_statements",
"default" => 0
)
);
Expand Down

0 comments on commit 8b1931f

Please sign in to comment.