mirror of
https://github.com/dg/dibi.git
synced 2025-08-17 19:37:13 +02:00
- added connection directive 'substitutes'
- better ArrayObject handling in DibiTranslator
This commit is contained in:
@@ -98,6 +98,12 @@ class DibiConnection extends DibiObject
|
||||
$this->setProfiler(new $class);
|
||||
}
|
||||
|
||||
if (!empty($config['substitutes'])) {
|
||||
foreach ($config['substitutes'] as $key => $value) {
|
||||
dibi::addSubst($key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($config['lazy'])) {
|
||||
$this->connect();
|
||||
}
|
||||
|
Reference in New Issue
Block a user