From 9af768a7e621122e0ed7d8a21e4535450cd34d14 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 14 Jul 2009 00:45:10 -0400 Subject: [PATCH] HttpRemote -> Http_Remote and tweak class loading so that this allworks --- framework/Auth/lib/Horde/Auth.php | 4 ++-- framework/Auth/lib/Horde/Auth/{HttpRemote.php => Http/Remote.php} | 4 ++-- framework/Auth/package.xml | 8 +++++--- 3 files changed, 9 insertions(+), 7 deletions(-) rename framework/Auth/lib/Horde/Auth/{HttpRemote.php => Http/Remote.php} (90%) diff --git a/framework/Auth/lib/Horde/Auth.php b/framework/Auth/lib/Horde/Auth.php index 285eb87aa..290f2bc8f 100644 --- a/framework/Auth/lib/Horde/Auth.php +++ b/framework/Auth/lib/Horde/Auth.php @@ -81,12 +81,12 @@ class Horde_Auth */ static public function factory($driver, $params = null) { - $driver = basename($driver); + $driver = str_replace(' ', '_' , ucwords(str_replace('_', ' ', basename($driver)))); if (empty($params)) { $params = Horde::getDriverConfig('auth', $driver); } - $class = 'Horde_Auth_' . ucfirst($driver); + $class = 'Horde_Auth_' . $driver; if (class_exists($class)) { return new $class($params); } diff --git a/framework/Auth/lib/Horde/Auth/HttpRemote.php b/framework/Auth/lib/Horde/Auth/Http/Remote.php similarity index 90% rename from framework/Auth/lib/Horde/Auth/HttpRemote.php rename to framework/Auth/lib/Horde/Auth/Http/Remote.php index 79bd206c7..6391fb54c 100644 --- a/framework/Auth/lib/Horde/Auth/HttpRemote.php +++ b/framework/Auth/lib/Horde/Auth/Http/Remote.php @@ -1,6 +1,6 @@ * @package Horde_Auth */ -class Horde_Auth_HttpRemote extends Horde_Auth_Base +class Horde_Auth_Http_Remote extends Horde_Auth_Base { /** * Find out if a set of login credentials are valid. diff --git a/framework/Auth/package.xml b/framework/Auth/package.xml index 78e56b64a..67ae1eb50 100644 --- a/framework/Auth/package.xml +++ b/framework/Auth/package.xml @@ -38,6 +38,9 @@ http://pear.php.net/dtd/package-2.0.xsd"> + + + @@ -50,7 +53,6 @@ http://pear.php.net/dtd/package-2.0.xsd"> - @@ -140,7 +142,6 @@ http://pear.php.net/dtd/package-2.0.xsd"> - @@ -149,8 +150,8 @@ http://pear.php.net/dtd/package-2.0.xsd"> + - @@ -164,6 +165,7 @@ http://pear.php.net/dtd/package-2.0.xsd"> + -- 2.11.0