minor #34519 improve upgrade instructions for twig.exception_controller 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?
a8a9e69488/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php (L41)

Commits
-------

bdc68fd894 improve upgrade instructions for twig.exception_controller configuration
This commit is contained in:
Nicolas Grekas 2019-11-28 13:22:13 +01:00
commit 60aea22193
1 changed files with 11 additions and 1 deletions

View File

@ -274,7 +274,17 @@ TwigBridge
TwigBundle
----------
* Deprecated `twig.exception_controller` configuration option, set it to "null" and use `framework.error_controller` instead:
* Deprecated `twig.exception_controller` configuration option.
If you were not using this option previously, set it to `null`:
After:
```yaml
twig:
exception_controller: null
```
If you were using this option previously, set it to `null` and use `framework.error_controller` instead:
Before:
```yaml