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

[6.x] Revert #27807 "Extract registered event and login to registered method" #29875

Merged
merged 1 commit into from
Sep 5, 2019
Merged

Conversation

bakerkretzmar
Copy link
Contributor

@bakerkretzmar bakerkretzmar commented Sep 5, 2019

This PR fixes #29874 by reverting the changes to the RegistersUsers trait introduced in #27807.

Because RegistersUsers is a trait, classes useing it directly can't extend its functionality with the parent keyword as suggested in the upgrade guide, which means that to 'extend' a method we would have to override it completely and copy in any of the trait's functionality that we wanted to keep (or use something weird like use RegistersUsers { registered as afterRegistered; }).

It worked great before, and let people hook into the registration process or return a different response from the registration controller.

If we don't want to provide that functionality at all, we should take out the registered method completely, since splitting it in two doesn't accomplish anything if we can't extend either of them anyway.

If this is merged I'll submit a PR to update the docs. We should probably still mention this somewhere though, since people following the letter of the upgrade guide would have broken their apps by using the parent keyword.

@taylorotwell taylorotwell merged commit 3ace0b9 into laravel:6.x Sep 5, 2019
taylorotwell added a commit that referenced this pull request Sep 5, 2019
taylorotwell added a commit that referenced this pull request Sep 5, 2019
taylorotwell added a commit that referenced this pull request Sep 5, 2019
taylorotwell added a commit that referenced this pull request Sep 5, 2019
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.

[6.x] Usage of register and registered methods in RegisterController
2 participants