mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
fixed compatibility with Nette / RobotLoader
This commit is contained in:
@@ -111,6 +111,7 @@ class DibiConnection extends DibiObject
|
||||
}
|
||||
|
||||
if (!empty($profilerCfg['run'])) {
|
||||
class_exists('dibi'); // ensure dibi.php is processed
|
||||
$class = isset($profilerCfg['class']) ? $profilerCfg['class'] : 'DibiProfiler';
|
||||
if (!class_exists($class)) {
|
||||
throw new DibiException("Unable to create instance of dibi profiler '$class'.");
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user