8000 Config error on controller/error_pages.html by brandinchiu · Pull Request #11163 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Config error on controller/error_pages.html #11163

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
Jul 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update error_pages.rst
This appears to be a typo, as showException gives an error on Symfony 4.2 that reports confusion between showAction and showException.  Setting the twig config to showAction fixes the problem and displays the correct result.
  • Loading branch information
brandinchiu authored and javiereguiluz committed Jul 12, 2019
commit 6071e6ce252f0d87aee5097024f54bfe90050468
6 changes: 3 additions & 3 deletions controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ configuration option to point to it:

# app/config/config.yml
twig:
exception_controller: AppBundle:Exception:showException
exception_controller: AppBundle:Exception:showAction

.. code-block:: xml

Expand All @@ -222,7 +222,7 @@ configuration option to point to it:
https://symfony.com/schema/dic/twig/twig-1.0.xsd">

<twig:config>
<twig:exception-controller>AppBundle:Exception:showException</twig:exception-controller>
<twig:exception-controller>AppBundle:Exception:showAction</twig:exception-controller>
</twig:config>

</container>
Expand All @@ -231,7 +231,7 @@ configuration option to point to it:

// app/config/config.php
$container->loadFromExtension('twig', [
'exception_controller' => 'AppBundle:Exception:showException',
'exception_controller' => 'AppBundle:Exception:showAction',
// ...
]);

Expand Down
0