1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-24 10:53:17 +01: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

@ -37,6 +37,9 @@ require_once dirname(__FILE__) . '/libs/DibiDatabaseInfo.php';
require_once dirname(__FILE__) . '/libs/DibiEvent.php';
require_once dirname(__FILE__) . '/libs/DibiFileLogger.php';
require_once dirname(__FILE__) . '/libs/DibiFirePhpLogger.php';
if (interface_exists('Nette\Diagnostics\IBarPanel') || interface_exists('IBarPanel')) {
require_once dirname(__FILE__) . '/Nette/DibiNettePanel.php';
}

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);
}