Skip to content

improve upgrade instructions for twig.exception_controller configuration #34519

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

Merged
merged 1 commit into from
Nov 28, 2019
Merged

improve upgrade instructions for twig.exception_controller configuration #34519

merged 1 commit into from
Nov 28, 2019

Conversation

bendavies
Copy link
Contributor

@bendavies bendavies commented Nov 22, 2019

Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

This improves the upgrade instructions for the deprecated configuration of twig.exception_controller.

Or would it be better to make the default null on 4.4?

return 'twig.controller.exception::showAction';

@bendavies bendavies changed the title improve upgrade instructions for improve upgrade instructions for twig.exception_controller configuration Nov 22, 2019
Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

But this should be merged in 4.4 instead of master.

@bendavies
Copy link
Contributor Author

But this should be merged in 4.4 instead of master.

👍 fixed

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

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

Or would it be better to make the default null on 4.4?

This is already the case for new 4.4 projects (thanks to the flex recipe). For upgraded projects we have the deprecation warning, otherwise we would break the non-HTML error responses.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

what about UPGRADE-5.0.md?
we need to tell ppl can remove the file actually

@bendavies
Copy link
Contributor Author

what about UPGRADE-5.0.md?
we need to tell ppl can remove the file actually

as discussed, it's already there 👍

@nicolas-grekas
Copy link
Member

Thank you @bendavies.

nicolas-grekas added a commit that referenced this pull request Nov 28, 2019
…er configuration (bendavies)

This PR was merged into the 4.4 branch.

Discussion
----------

improve upgrade instructions for twig.exception_controller configuration

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

This improves the upgrade instructions for the deprecated configuration of `twig.exception_controller`.

Or would it be better to make the default `null` on 4.4?
https://github.com/symfony/symfony/blob/a8a9e69488fdaf609fecacba66e056ffb8f25da8/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php#L41

Commits
-------

bdc68fd improve upgrade instructions for twig.exception_controller configuration
@nicolas-grekas nicolas-grekas merged commit bdc68fd into symfony:4.4 Nov 28, 2019
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.

5 participants