mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Lotsa bug fixes and updates
This commit is contained in:
		| @@ -34,8 +34,10 @@ class ClientStorage extends Adapter implements ClientInterface | ||||
|  | ||||
|         if (count($result) === 1) { | ||||
|             $client = new ClientEntity($this->server); | ||||
|             $client->setId($result[0]['id']); | ||||
|             $client->setName($result[0]['name']); | ||||
|             $client->hydrate([ | ||||
|                 'id'    =>  $result[0]['id'], | ||||
|                 'name'  =>  $result[0]['name'] | ||||
|             ]); | ||||
|  | ||||
|             return $client; | ||||
|         } | ||||
| @@ -56,8 +58,10 @@ class ClientStorage extends Adapter implements ClientInterface | ||||
|  | ||||
|         if (count($result) === 1) { | ||||
|             $client = new ClientEntity($this->server); | ||||
|             $client->setId($result[0]['id']); | ||||
|             $client->setName($result[0]['name']); | ||||
|             $client->hydrate([ | ||||
|                 'id'    =>  $result[0]['id'], | ||||
|                 'name'  =>  $result[0]['name'] | ||||
|             ]); | ||||
|  | ||||
|             return $client; | ||||
|         } | ||||
|   | ||||
| @@ -23,8 +23,9 @@ class ScopeStorage extends Adapter implements ScopeInterface | ||||
|             return null; | ||||
|         } | ||||
|  | ||||
|         return (new ScopeEntity($this->server)) | ||||
|                             ->setId($result[0]['id']) | ||||
|                             ->setDescription($result[0]['description']); | ||||
|         return (new ScopeEntity($this->server))->hydrate([ | ||||
|             'id'            =>  $result[0]['id'], | ||||
|             'description'   =>  $result[0]['description'] | ||||
|         ]); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user