1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-12 09:04:24 +02:00

added bridge for Nette 2.2 & Tracy

This commit is contained in:
David Grudl
2014-03-24 19:29:59 +01:00
parent e4e767048f
commit abd3e2116c
4 changed files with 210 additions and 1 deletions

View File

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