Skip to content

Commit a2c4910

Browse files
committed
Merge pull request #465 from michalsanger/develop
Create Grant via DI container
2 parents 12b6a53 + 217eb5d commit a2c4910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OAuth2ServerServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function registerAuthorizer()
9494

9595
// add the supported grant types to the authorization server
9696
foreach ($config['grant_types'] as $grantIdentifier => $grantParams) {
97-
$grant = new $grantParams['class'];
97+
$grant = $app->make($grantParams['class']);
9898
$grant->setAccessTokenTTL($grantParams['access_token_ttl']);
9999

100100
if (array_key_exists('callback', $grantParams)) {

0 commit comments

Comments
 (0)