We have a factory bound to 'Horde_Db_Adapter' for the default horde db.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Jan 2011 06:23:29 +0000 (01:23 -0500)
committerMichael 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

index 72a1de2..5a74b12 100644 (file)
@@ -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);
             }