Skip to content

Commit 4469526

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: Fix code block for routing troubleshooting examples
2 parents aa5e37b + cd6140a commit 4469526

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
@@ -2622,6 +2622,8 @@ Troubleshooting
26222622

26232623
Here are some common errors you might see while working with routing:
26242624

2625+
.. code-block:: text
2626+
26252627
Controller "App\\Controller\\BlogController::show()" requires that you
26262628
provide a value for the "$slug" argument.
26272629
@@ -2636,6 +2638,8 @@ But your route path does *not* have a ``{slug}`` parameter (e.g. it is
26362638
``/blog/show``). Add a ``{slug}`` to your route path: ``/blog/show/{slug}`` or
26372639
give the argument a default value (i.e. ``$slug = null``).
26382640

2641+
.. code-block:: text
2642+
26392643
Some mandatory parameters are missing ("slug") to generate a URL for route
26402644
"blog_show".
26412645

0 commit comments

Comments
 (0)