From a27d30ebe75e51a4dcd18bbc01392a5b546c6cb9 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Sat, 4 Feb 2023 18:39:26 +0100 Subject: [PATCH] Fix code block for routing troubleshooting examples --- routing.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routing.rst b/routing.rst index 5b3900868d0..7bbb5cf0804 100644 --- a/routing.rst +++ b/routing.rst @@ -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. @@ -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".