8000 minor #34519 improve upgrade instructions for twig.exception_controll… · symfony/symfony@60aea22 · GitHub
[go: up one dir, main page]

Skip to content

Commit 60aea22

Browse files
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? 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
2 parents 8378d95 + bdc68fd commit 60aea22

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

UPGRADE-4.4.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,17 @@ TwigBridge
274274
TwigBundle
275275
----------
276276

277-
* Deprecated `twig.exception_controller` configuration option, set it to "null" and use `framework.error_controller` instead:
277+
* Deprecated `twig.exception_controller` configuration option.
278+
279+
If you were not using this option previously, set it to `null`:
280+
281+
After:
282+
```yaml
283+
twig:
284+
exception_controller: null
285+
```
286+
287+
If you were using this option previously, set it to `null` and use `framework.error_controller` instead:
278288

279289
Before:
280290
```yaml

0 commit comments

Comments
 (0)
0