From: Chuck Hagenbuch Date: Sun, 24 Jan 2010 01:59:32 +0000 (-0500) Subject: remove "kind" concept from the Db binder X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9b07f7676f7534e256962fbabcbc9ba4812edf1a;p=horde.git remove "kind" concept from the Db binder --- diff --git a/framework/Core/lib/Horde/Core/Binder/Db.php b/framework/Core/lib/Horde/Core/Binder/Db.php index fb30bd4b6..917d87800 100644 --- a/framework/Core/lib/Horde/Core/Binder/Db.php +++ b/framework/Core/lib/Horde/Core/Binder/Db.php @@ -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)) {