Permalink
Browse files

Making OAuth classes extensible, step three, renaming classes

  • Loading branch information...
1 parent c0bcb79 commit 5494c74449554eb416d36c5f38bc5e89414af906 @shadowhand shadowhand committed Jul 4, 2010
@@ -22,7 +22,7 @@
*/
public static function factory($name, array $options = NULL)
{
- $class = __CLASS__.'_'.$name;
+ $class = 'OAuth_Factory_'.$name;
return new $class($options);
}
@@ -23,7 +23,7 @@ class Kohana_OAuth_Request {
*/
public static function factory($type, $method, $url = NULL, array $params = NULL)
{
- $class = __CLASS__.'_'.$type;
+ $class = 'OAuth_Request_'.$type;
return new $class($method, $url, $params);
}
@@ -12,7 +12,7 @@ class Kohana_OAuth_Response {
public static function factory($body)
{
- return new self($body);
+ return new OAuth_Response($body);
}
/**
@@ -22,7 +22,7 @@
public static function factory($name, array $options = NULL)
{
// Create the class name as a base of this class
- $class = __CLASS__.'_'.str_replace('-', '_', $name);
+ $class = 'OAuth_Signature_'.str_replace('-', '_', $name);
return new $class($options);
}
@@ -21,7 +21,7 @@
*/
public static function factory($name, array $options = NULL)
{
- $class = __CLASS__.'_'.$name;
+ $class = 'OAuth_Token_'.$name;
return new $class($options);
}

0 comments on commit 5494c74

Please sign in to comment.