Skip to content

Commit

Permalink
Add: grantType to server based on indentifier
Browse files Browse the repository at this point in the history
If $key is not provided Server::addGrantType is called, add the grant type base on qyery string identifier for better consistency
  • Loading branch information
Florent Viel committed Apr 24, 2014
1 parent 91c1fa5 commit 9365df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OAuth2/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public function addGrantType(GrantTypeInterface $grantType, $key = null)
if (is_string($key)) {
$this->grantTypes[$key] = $grantType;
} else {
$this->grantTypes[] = $grantType;
$this->grantTypes[$grantType->getQuerystringIdentifier()] = $grantType;
}

// persist added grant type down to TokenController
Expand Down

0 comments on commit 9365df6

Please sign in to comment.