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

add ChainUserProvider #683

Merged
merged 1 commit into from
May 31, 2020
Merged

add ChainUserProvider #683

merged 1 commit into from
May 31, 2020

Conversation

Gemorroj
Copy link
Contributor

@Gemorroj Gemorroj commented Sep 9, 2019

Fixes #615
Fixes #754

@chalasr
Copy link
Collaborator

chalasr commented May 31, 2020

Thanks for fixing this bug @Gemorroj.

@chalasr chalasr merged commit 8f539d9 into lexik:master May 31, 2020
Comment on lines +290 to +291
foreach ($userProvider->getProviders() as $provider) {
if ($provider instanceof PayloadAwareUserProviderInterface) {

Choose a reason for hiding this comment

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

It's better to wrap this part into try-catch like it's done in original Chain provider https://github.com/symfony/security/blob/9b4060f040be91d55db67831bf83981097c609b1/Core/User/ChainUserProvider.php#L52

Copy link
Collaborator

Choose a reason for hiding this comment

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

@CvekCoding good catch. Would you mind sending a PR or shall I do it?

Choose a reason for hiding this comment

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

Sure, I'll do this today.

Choose a reason for hiding this comment

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

@chalasr when this fix can be released?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

Done #766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants