Skip to content

Commit 679f881

Browse files
committed
Fix client creation by using the type reference
1 parent 6e60d06 commit 679f881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controller/OAuthController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function startAuthorizationAction(string $clientId, string $clientSecret,
4545
throw new OAuthClientException(sprintf('Failed starting OAuth2 authorization, because the given service type "%s" is unknown.', $serviceType), 1511187873921);
4646
}
4747

48-
$client = new $this->serviceTypes[$serviceName]($serviceName);
48+
$client = new $this->serviceTypes[$serviceType]($serviceName);
4949
assert($client instanceof OAuthClient);
5050
$authorizeUri = $client->startAuthorization($clientId, $clientSecret, $returnToUri, $scope);
5151
$this->redirectToUri($authorizeUri);

0 commit comments

Comments
 (0)