-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
TwigBundle error controller issue with Symfony 4.4 #34631
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
Comments
This After migrating to the new You still can typehint the |
Btw, if you don't have a custom error controller, you don't need this step: framework:
error_controller: 'twig.controller.exception::showAction' |
@yceruto I don't have a custom error controller, but without twig:
exception_controller: null _errors:
resource: '@TwigBundle/Resources/config/routing/errors.xml'
prefix: /_error /_error/404 Results in:
|
it should be |
Thank you @yceruto, that did the trick. The change to Hence I got stuck :) |
Yep, wip symfony/symfony-docs#12687 |
Symfony version(s) affected: 4.4.0
Description
I'm upgrading to Symfony 4.4 and going through the following steps:
First I set
twig.exception_controller
to null:Next I need to set
framework.error_controller
. The default value istwig.controller.exception::showAction
as can be seen in https://github.com/symfony/twig-bundle/blob/4.4/DependencyInjection/Configuration.php#L41This results in the following error:
How to reproduce
See above.
The text was updated successfully, but these errors were encountered: