1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00

class DibiNettePanel is included in dibi.php [Closes #49]

This commit is contained in:
David Grudl
2012-01-11 00:18:17 +01:00
parent 1d63af75f9
commit eee105f607
2 changed files with 4 additions and 1 deletions

View File

@@ -119,7 +119,7 @@ class DibiConnection extends DibiObject
$this->onEvent[] = array(new DibiFirePhpLogger($filter), 'logEvent');
}
if (interface_exists('Nette\Diagnostics\IBarPanel') || interface_exists('IBarPanel')) {
if (class_exists('DibiNettePanel')) {
$panel = new DibiNettePanel(isset($profilerCfg['explain']) ? $profilerCfg['explain'] : TRUE, $filter);
$panel->register($this);
}