From e1c375f617a8b379fa6e9265513a489271871439 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 6 Jul 2012 17:43:33 +0100 Subject: [PATCH] Database object (and register method) --- src/oauth2server/Server.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/oauth2server/Server.php b/src/oauth2server/Server.php index 29de4617..65381cb4 100644 --- a/src/oauth2server/Server.php +++ b/src/oauth2server/Server.php @@ -10,6 +10,7 @@ class OAuthServerException extends Exception {} class Server { + private $db = NULL; protected $errors = array( 'invalid_request' => 'The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.', @@ -25,8 +26,10 @@ class Server ); public function __construct() + public function registerDbAbstractor(object $db) { + $this->db = $db; } public function registerDbAbstractor()