mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 15:23:12 +08:00
Updated to readonly public props on as many models as possible
This commit is contained in:
@@ -49,7 +49,7 @@ class AuthenticationMiddleware implements MiddlewareInterface, StatusCodeInterfa
|
||||
throw VerifyAuthenticationException::forInvalidApiKey();
|
||||
}
|
||||
|
||||
return $handler->handle($request->withAttribute(ApiKey::class, $result->apiKey()));
|
||||
return $handler->handle($request->withAttribute(ApiKey::class, $result->apiKey));
|
||||
}
|
||||
|
||||
public static function apiKeyFromRequest(Request $request): ApiKey
|
||||
|
||||
Reference in New Issue
Block a user