Added method to ApiKeyService to list api keys

This commit is contained in:
Alejandro Celaya
2016-08-06 18:08:09 +02:00
parent 74777c2234
commit dd1bc49b79
3 changed files with 46 additions and 0 deletions

View File

@@ -28,4 +28,12 @@ interface ApiKeyServiceInterface
* @return ApiKey
*/
public function disable($key);
/**
* Lists all existing appi keys
*
* @param bool $enabledOnly Tells if only enabled keys should be returned
* @return ApiKey[]
*/
public function listKeys($enabledOnly = false);
}