Closed kbond closed 4 years ago
@Knallcharge, possible for you to check if this PR fixes your app?
Just applied your changes to my files and ran the test: Works for me now using Symfony 5.1 (don't have a Symfony 4.4 project at hand right now, so couldn't test for that version), thanks for the quick fix!
As described in #242, I believe this check has been broken since 4.0 (false positive in 4.x/5.0 and errors in 5.1).
I removed the code that checks the "exception controller" and just check the configured path for the required templates. If the given path is
kernel.project_dir
, look for the templates inapp/Resources/TwigBundle/views/Exception
if using 3.4 andtemplates/bundles/TwigBundle/Exception
if using 4.0+.