Skip to content

Commit cd6140a

Browse files
committed
minor #17866 Fix code block for routing troubleshooting examples (alamirault)
This PR was merged into the 5.4 branch. Discussion ---------- Fix code block for routing troubleshooting examples Fix #17842 Commits ------- a27d30e Fix code block for routing troubleshooting examples
2 parents db6aa08 + a27d30e commit cd6140a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3026,6 +3026,8 @@ Troubleshooting
30263026

30273027
Here are some common errors you might see while working with routing:
30283028

3029+
.. code-block:: text
3030+
30293031
Controller "App\\Controller\\BlogController::show()" requires that you
30303032
provide a value for the "$slug" argument.
30313033
@@ -3040,6 +3042,8 @@ But your route path does *not* have a ``{slug}`` parameter (e.g. it is
30403042
``/blog/show``). Add a ``{slug}`` to your route path: ``/blog/show/{slug}`` or
30413043
give the argument a default value (i.e. ``$slug = null``).
30423044

3045+
.. code-block:: text
3046+
30433047
Some mandatory parameters are missing ("slug") to generate a URL for route
30443048
"blog_show".
30453049

0 commit comments

Comments
 (0)