Simplify ApiKey entity by exposing key as a readonly prop

This commit is contained in:
Alejandro Celaya
2024-11-04 14:22:39 +01:00
parent b5010e4d8c
commit 79c5418ac2
9 changed files with 28 additions and 46 deletions

View File

@@ -109,7 +109,7 @@ class GenerateKeyCommand extends Command
));
$io = new SymfonyStyle($input, $output);
$io->success(sprintf('Generated API key: "%s"', $apiKey->toString()));
$io->success(sprintf('Generated API key: "%s"', $apiKey->key));
if (! ApiKey::isAdmin($apiKey)) {
ShlinkTable::default($io)->render(