Skip to content

Commit f1fe730

Browse files
authored
Merge pull request #7 from hphoeksma/bufgix-wrong-servicetype-pointer
Fix client creation by using the type reference
2 parents 022df7e + 679f881 commit f1fe730

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)