-
Notifications
You must be signed in to change notification settings - Fork 941
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5.x] Adds support for configuring scope of providers from configurat…
…ion. (#728) Update `buildProvider` to initialize scopes from the configuration `services.{driver}.scopes` array if provided. Add tests to validate GitHub driver behaves correctly with and without `services.{driver}.scopes` array provided in configuration. Ensure scopes are returned as indexed arrays without missing indexes by using `array_values` to possibly prevent future implementation issues. Ensure backwards compatibility by wrapping provider instantiation in parenthesis when calling scopes(). Co-authored-by: TheAladeen <[email protected]>
- Loading branch information
1 parent
c654af8
commit b2ce47b
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters