Add new command to delete API keys

This commit is contained in:
Alejandro Celaya
2025-10-20 09:58:21 +02:00
parent cae18ccfb3
commit b5a9353b85
10 changed files with 276 additions and 4 deletions

View File

@@ -22,4 +22,10 @@ interface ApiKeyRepositoryInterface extends EntityRepositoryInterface, EntitySpe
* Checks whether an API key with provided name exists or not
*/
public function nameExists(string $name): bool;
/**
* Delete an API key by name
* @return positive-int|0 Number of affected results
*/
public function deleteByName(string $name): int;
}