Skip to content

Fix user entity import #14547

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

Closed
wants to merge 1 commit into from
Closed

Fix user entity import #14547

wants to merge 1 commit into from

Conversation

KaisKarsou
Copy link
Contributor

The user entity import was incorrectly set to import from the Security namespace instead of Entity.
https://symfony.com/doc/current/security/user_checkers.html

The user entity import was incorrectly set to import from the Security namespace instead of Entity.
@KaisKarsou
Copy link
Contributor Author

I also added these pull requests for different maintained versions of the docs:

#14546
#14545

It's essentially the same change. First time contributing here, so not sure if I was supposed to do a separate PR for each of those. If not, sorry for the PR spam.

Comment on lines 24 to -26
namespace App\Security;

use App\Security\User as AppUser;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not referred to AppBundle and use AppBundle\Exception\AccountDeletedException; was also lost?

Copy link
Contributor

@Arman-Hosseini Arman-Hosseini Nov 14, 2020

Choose a reason for hiding this comment

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

Sorry, this was my mistake, I was on 3.4 branch.

@javiereguiluz
Copy link
Member

Thanks for this fix @obsirdian. However, in #14546 you did the same change and that's enough, so we're closing this pull request.

Because of how Symfony Docs repository works, you only have to make the fix in the oldest maintained branch that contains the bug. Then we merge the same fix in all supported branches. So, closing this then. Thanks!

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

Successfully merging this pull request may close these issues.

4 participants