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

Simplify logout #1459

Merged
merged 1 commit into from
Nov 24, 2023
Merged

Simplify logout #1459

merged 1 commit into from
Nov 24, 2023

Conversation

javiereguiluz
Copy link
Member

I checked the list of Symfony 6.4 features, and this is the only one that I think it fits this application. So, let's use it.

public function logout(): void
{
throw new \Exception('This should never be reached!');
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Still might be good for newcomers? It explains how the feature works internally

Copy link
Member Author

Choose a reason for hiding this comment

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

The problem is that this "fake" logout route always felt weird for newcomers and created friction. I think it's better to just forget about this. If someone needs to do something advanced related to logout, they'll just find plenty of information about this in the Symfony Docs. Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, probably makes sense 👍

@javiereguiluz javiereguiluz merged commit 15962e8 into symfony:main Nov 24, 2023
@javiereguiluz javiereguiluz deleted the sf64_features branch November 24, 2023 14:32
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.

2 participants