8000 minor #11163 Config error on controller/error_pages.html (brandinchiu) · symfony/symfony-docs@eda7e3e · GitHub
[go: up one dir, main page]

Skip to content

Commit eda7e3e

Browse files
committed
minor #11163 Config error on controller/error_pages.html (brandinchiu)
This PR was submitted for the 4.2 branch but it was merged into the 3.4 branch instead (closes #11163). Discussion ---------- Config error on controller/error_pages.html 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. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 6071e6c Update error_pages.rst
2 parents 9d042fc + 6071e6c commit eda7e3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controller/error_pages.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ configuration option to point to it:
207207
208208
# app/config/config.yml
209209
twig:
210-
exception_controller: AppBundle:Exception:showException
210+
exception_controller: AppBundle:Exception:showAction
211211
212212
.. code-block:: xml
213213
@@ -222,7 +222,7 @@ configuration option to point to it:
222222
https://symfony.com/schema/dic/twig/twig-1.0.xsd">
223223
224224
<twig:config>
225-
<twig:exception-controller>AppBundle:Exception:showException</twig:exception-controller>
225+
<twig:exception-controller>AppBundle:Exception:showAction</twig:exception-controller>
226226
</twig:config>
227227
228228
</container>
@@ -231,7 +231,7 @@ configuration option to point to it:
231231
232232
// app/config/config.php
233233
$container->loadFromExtension('twig', [
234-
'exception_controller' => 'AppBundle:Exception:showException',
234+
'exception_controller' => 'AppBundle:Exception:showAction',
235235
// ...
236236
]);
237237

0 commit comments

Comments
 (0)
0