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:
@@ -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'])
|
||||||
|
@@ -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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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:";'));
|
||||||
|
Reference in New Issue
Block a user