mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Add upgrade guide for version 6 to 7
This commit is contained in:
parent
28278da6a6
commit
0da1aefad3
@ -6,6 +6,23 @@ permalink: /upgrade-guide/
|
||||
|
||||
# Upgrade Guide
|
||||
|
||||
## 6.x.x → 7.x.x
|
||||
|
||||
Version `7.x.x` requires PHP 7.0.0 or higher. This version is not backwards compatible with version `6.x.x` of the library.
|
||||
|
||||
The interface for `getClientEntity()` in the `clientRepositoryInterface` has changed. The `$grantType` argument must now default to `null`.
|
||||
|
||||
```patch
|
||||
public function getClientEntity(
|
||||
$clientIdentifier,
|
||||
- $grantType,
|
||||
+ $grantType = null,
|
||||
$clientSecret = null,
|
||||
$mustValidateSecret = true
|
||||
);
|
||||
```
|
||||
Please see the [changelog](https://github.com/thephpleague/oauth2-server/blob/master/CHANGELOG.md) for a complete list of all changes.
|
||||
|
||||
## 5.1.x → 6.x.x
|
||||
|
||||
Version `6.x.x` is not backwards compatible with version `5.1.x` but only requires you to make one line of code change:
|
||||
|
Loading…
Reference in New Issue
Block a user