-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
remove default template loading on exception #3704
remove default template loading on exception #3704
Conversation
19537e2
to
fe9d29b
Compare
I have run my project's test suite with this piece of code, and it passed. I'll keep it in my project for a while, but I think this really can be removed. |
Refs #3255. Even this is BC break, I am 👍 for this. Debugging this kind of typo in template can be very paintfull. |
Yes, but I don't really want to keep BC. |
Please fill your PR of missing parts indicated by the "Needs" labels. Feel free to ask if you want some precision of what is needed. |
fe9d29b
to
b0ed832
Compare
@soullivaneuh done |
b0ed832
to
c63ecc0
Compare
@sonata-project/contributors final review ? |
Personally, I would like a BC way with a If we can follow the Symfony method (new major is the last minor without deprecated stuff), it would be wonderful. 👍 In any case, an upgrade note is needed. |
Ok, I'll do that. |
Temporarily closing so that this does not get merge by error. |
d5d2783
to
5e20857
Compare
|
||
/** | ||
* @expectedException Twig_Error_Loader | ||
* @expectedExceptionMessage Unable to find template "base_list_nonexistent_field.html.twig" | ||
* @group legacy | ||
* @expectedExceptionMessage Unable to find template "list_nonexistent_template.html.twig" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure whether this test should be kept… it depends on Twig.
Why would anyone want to rely on that? Maybe there is a valid reason, but it does not appear in the comments or in the commit history. The best way to find out is to remove this "feature". If anyone reverts this commit, please make sure to add a comment to explain this.
5e20857
to
b045372
Compare
ping @sonata-project/contributors |
Why would anyone want to rely on that? Maybe there is a valid reason,
but it does not appear in the comments or in the commit history. The
best way to find out is to remove the "feature". If anyone reverts this
commit, please make sure to add a comment to explain this.