Skip to content

Commit 6071e6c

Browse files
brandinchiujaviereguiluz
authored andcommitted
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.
1 parent 9d042fc commit 6071e6c

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)