Changed ShortUrlMeta so that it expects an ApiKey instance instead of the key as string

This commit is contained in:
Alejandro Celaya
2021-01-04 13:32:44 +01:00
parent 24f7fb9c4f
commit 29cdfaed39
12 changed files with 16 additions and 81 deletions

View File

@@ -50,7 +50,7 @@ class SingleStepCreateShortUrlAction extends AbstractCreateShortUrlAction
}
return new CreateShortUrlData($longUrl, [], ShortUrlMeta::fromRawData([
ShortUrlMetaInputFilter::API_KEY => $apiKeyResult->apiKey()->toString(),
ShortUrlMetaInputFilter::API_KEY => $apiKeyResult->apiKey(),
]));
}
}