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

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Miloslav Hůla
2012-01-08 20:03:30 +01:00
3 changed files with 5 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ class DibiNetteExtension extends Nette\Config\CompilerExtension
public function loadConfiguration() public function loadConfiguration()
{ {
$container = $this->getContainer(); $container = $this->getContainerBuilder();
$config = $this->getConfig(); $config = $this->getConfig();
$useProfiler = isset($config['profiler']) $useProfiler = isset($config['profiler'])

View File

@@ -37,7 +37,6 @@ 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';
require_once dirname(__FILE__) . '/Nette/DibiNettePanel.php';

View File

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