remove "kind" concept from the Db binder
authorChuck Hagenbuch <chuck@horde.org>
Sun, 24 Jan 2010 01:59:32 +0000 (20:59 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sun, 24 Jan 2010 01:59:32 +0000 (20:59 -0500)
framework/Core/lib/Horde/Core/Binder/Db.php

index fb30bd4..917d878 100644 (file)
@@ -2,20 +2,6 @@
 class Horde_Core_Binder_Db implements Horde_Injector_Binder
 {
     /**
-     * If there are multiple db instances, which one should be returned?
-     * @var string
-     */
-    protected $_kind = 'manager';
-
-    /**
-     * @param string $kind  The kind of database connection to return - reader, writer, manager.
-     */
-    public function __construct($kind = null)
-    {
-        $this->_kind = $kind;
-    }
-
-    /**
      * Handle Horde-style configuration arrays, PEAR DB/MDB2 arrays or DSNs, or
      * PDO DSNS.
      */
@@ -40,9 +26,6 @@ class Horde_Core_Binder_Db implements Horde_Injector_Binder
             $config['cache'] = $injector->getInstance('Horde_Cache');
         }
 
-        /* @TODO Based on $this->_kind and the splitread configuration, return a
-         * reader, writer, or manager connection. */
-
         $adapter = str_replace(' ', '_' , ucwords(str_replace('_', ' ', basename($config['adapter']))));
         $class = 'Horde_Db_Adapter_' . $adapter;
         if (!class_exists($class)) {