From 9b07f7676f7534e256962fbabcbc9ba4812edf1a Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 23 Jan 2010 20:59:32 -0500 Subject: [PATCH] remove "kind" concept from the Db binder --- framework/Core/lib/Horde/Core/Binder/Db.php | 17 ----------------- 1 file changed, 17 deletions(-) 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)) { -- 2.11.0