mirror of
https://github.com/dg/dibi.git
synced 2025-07-16 03:56:24 +02:00
class DibiNettePanel is included in dibi.php [Closes #49]
This commit is contained in:
@ -37,6 +37,9 @@ require_once dirname(__FILE__) . '/libs/DibiDatabaseInfo.php';
|
|||||||
require_once dirname(__FILE__) . '/libs/DibiEvent.php';
|
require_once dirname(__FILE__) . '/libs/DibiEvent.php';
|
||||||
require_once dirname(__FILE__) . '/libs/DibiFileLogger.php';
|
require_once dirname(__FILE__) . '/libs/DibiFileLogger.php';
|
||||||
require_once dirname(__FILE__) . '/libs/DibiFirePhpLogger.php';
|
require_once dirname(__FILE__) . '/libs/DibiFirePhpLogger.php';
|
||||||
|
if (interface_exists('Nette\Diagnostics\IBarPanel') || interface_exists('IBarPanel')) {
|
||||||
|
require_once dirname(__FILE__) . '/Nette/DibiNettePanel.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ class DibiConnection extends DibiObject
|
|||||||
$this->onEvent[] = array(new DibiFirePhpLogger($filter), 'logEvent');
|
$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 = new DibiNettePanel(isset($profilerCfg['explain']) ? $profilerCfg['explain'] : TRUE, $filter);
|
||||||
$panel->register($this);
|
$panel->register($this);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user