Skip to content

Commit

Permalink
Fix code block for routing troubleshooting examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alamirault committed Feb 4, 2023
1 parent db6aa08 commit a27d30e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3026,6 +3026,8 @@ Troubleshooting

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

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

.. code-block:: text
Some mandatory parameters are missing ("slug") to generate a URL for route
"blog_show".
Expand Down

0 comments on commit a27d30e

Please sign in to comment.