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

[DoctrineBridge] Add message to #[MapEntity] for NotFoundHttpException #51562

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

moesoha
Copy link
Contributor

@moesoha moesoha commented Sep 5, 2023

Q A
Branch? 6.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

Allow the message in NotFoundHttpException to be overridden with the message argument in #[MapEntity].

@ro0NL
Copy link
Contributor

ro0NL commented Sep 5, 2023

this wont be displayed in prod is it? ref #49653 + #49687

@derrabus
Copy link
Member

derrabus commented Sep 5, 2023

Right, it won't. This message would be purely for development. I'm not saying, we shouldn't merge it, but I'm curious about the motivation behind this change.

@moesoha
Copy link
Contributor Author

moesoha commented Sep 5, 2023

I am exposing message in NotFoundHttpException to the user for a friendly 404 message in my project. This is inspired by the parameter in #[IsGranted].

@nicolas-grekas nicolas-grekas modified the milestones: 6.4, 7.1 Nov 15, 2023
@fabpot
Copy link
Member

fabpot commented Feb 2, 2024

Thank you @moesoha.

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.

None yet

6 participants