Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Resolve socialite user action #86

Merged
merged 9 commits into from
Mar 9, 2021

Conversation

joelbutcher
Copy link
Owner

Some develops may want to make changes to the way this package resolves users. For example, they may want to call the ->stateless() method on socialite. This PR fixes this by deferring the resolution of the socialite user to a default contract implementation.

Developers can now override how Socialite users are resolved by implementing the ResolvesSocialiteUsers contract and specifying the action they wish to use in their SocialstreamServiceProvider:

public function boot()
{
    \JoelButcher\Socialstream\Socialstream::resolvesSocialiteUsersUsing(ResolveSocialiteUser::class);
}

@joelbutcher joelbutcher changed the title [2.x[ Resolve socialite user action [2.x] Resolve socialite user action Mar 9, 2021
@joelbutcher joelbutcher merged commit 00346a4 into 2.x Mar 9, 2021
@joelbutcher joelbutcher deleted the resolve-socialite-user-action branch March 9, 2021 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant