Skip to content

Commit

Permalink
Added GrantTrait::setIdentifier
Browse files Browse the repository at this point in the history
I found it useful to be able to set the identifier so I could "alias" one for deprecation. Hopefully no issues here @alexbilbie
  • Loading branch information
Phil Sturgeon committed Dec 4, 2013
1 parent b55b73c commit 1419ba8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/League/OAuth2/Server/Grant/GrantTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ public function getIdentifier()
return $this->identifier;
}

/**
* Return the identifier
* @param string $identifier
* @return self
*/
public function setIdentifier($identifier)
{
$this->identifier = $identifier;
return $this;
}

/**
* Return the response type
* @return string
Expand All @@ -42,4 +53,4 @@ public function setAccessTokenTTL($accessTokenTTL)
return $this;
}

}
}

1 comment on commit 1419ba8

@alexbilbie
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool beans

Please sign in to comment.