mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-26 03:01:23 +02:00
This reverts commit 958ac08897
.
This commit is contained in:
@@ -204,7 +204,7 @@ class PDOCollector extends DataCollector implements Renderable, AssetProvider
|
|||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
return 'database';
|
return 'pdo';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -212,17 +212,15 @@ class PDOCollector extends DataCollector implements Renderable, AssetProvider
|
|||||||
*/
|
*/
|
||||||
public function getWidgets()
|
public function getWidgets()
|
||||||
{
|
{
|
||||||
$name = $this->getName();
|
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
"$name" => array(
|
"database" => array(
|
||||||
"icon" => "database",
|
"icon" => "database",
|
||||||
"widget" => "PhpDebugBar.Widgets.SQLQueriesWidget",
|
"widget" => "PhpDebugBar.Widgets.SQLQueriesWidget",
|
||||||
"map" => "$name",
|
"map" => "pdo",
|
||||||
"default" => "[]"
|
"default" => "[]"
|
||||||
),
|
),
|
||||||
"$name:badge" => array(
|
"database:badge" => array(
|
||||||
"map" => "$name.nb_statements",
|
"map" => "pdo.nb_statements",
|
||||||
"default" => 0
|
"default" => 0
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user