mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-29 02:33:25 +05:30
Added GrantTrait::setIdentifier
I found it useful to be able to set the identifier so I could "alias" one for deprecation. Hopefully no issues here @alexbilbie
This commit is contained in:
1 parent
b55b73c1e8
commit
1419ba8cdc
1 file changed
+12
-1
@@ -22,6 +22,17 @@ trait GrantTrait {
|
||||
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
|
||||
@@ -42,4 +53,4 @@ trait GrantTrait {
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user