projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c82484
)
We have a factory bound to 'Horde_Db_Adapter' for the default horde db.
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Thu, 13 Jan 2011 06:23:29 +0000
(
01:23
-0500)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Thu, 13 Jan 2011 06:23:59 +0000
(
01:23
-0500)
Still need to inject the adapter into the driver(s)...
turba/lib/Driver/Sql.php
patch
|
blob
|
history
diff --git
a/turba/lib/Driver/Sql.php
b/turba/lib/Driver/Sql.php
index
72a1de2
..
5a74b12
100644
(file)
--- a/
turba/lib/Driver/Sql.php
+++ b/
turba/lib/Driver/Sql.php
@@
-47,7
+47,7
@@
class Turba_Driver_Sql extends Turba_Driver
// TODO: Move to injector
if (empty($this->_params['sql'])) {
try {
- $this->_db = $GLOBALS['injector']->getInstance('Horde_
Core_Factory_Db')->create(
);
+ $this->_db = $GLOBALS['injector']->getInstance('Horde_
Db_Adapter'
);
} catch (Horde_Db_Exception $e) {
throw new Turba_Exception($e);
}