1
0
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:
David Grudl
2009-02-25 20:10:17 +00:00
parent 14b731e002
commit d2f1beba57
2 changed files with 14 additions and 1 deletions

View File

@@ -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();
}