Skip to content

Fix code block for routing troubleshooting examples #17866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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