mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Update api-key:disable command to allow passing a name
This commit is contained in:
@@ -19,7 +19,13 @@ interface ApiKeyServiceInterface
|
||||
/**
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function disable(string $key): ApiKey;
|
||||
public function disableByName(string $apiKeyName): ApiKey;
|
||||
|
||||
/**
|
||||
* @deprecated Use `self::disableByName($name)` instead
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function disableByKey(string $key): ApiKey;
|
||||
|
||||
/**
|
||||
* @return ApiKey[]
|
||||
|
||||
Reference in New Issue
Block a user