Skip to content

Commit 58bc7fc

Browse files
committed
remove traillingslash and backticks
1 parent 78e2449 commit 58bc7fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doctrine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ Mapped Route Parameters
867867
When many route parameters are used to find more than one entity,
868868
it is mandatory to use ``#[MapEntity]`` attributes and this can become cumbersome::
869869

870-
#[Route('/document/{slug}/{id}-{name}/')]
870+
#[Route('/document/{slug}/{id}-{name}')]
871871
public function showDocument(
872872
#[MapEntity(mapping: ['slug' => 'slug'])]
873873
Category $category,
@@ -884,7 +884,7 @@ As an alternative, you can also use Mapped Route Parameters.
884884

885885
When adding route parameters, you can now define the mapping between the route parameter and the controller argument::
886886

887-
#[Route('/document/{slug:category}/{id:document}-{name:document}/')]
887+
#[Route('/document/{slug:category}/{id:document}-{name:document}')]
888888
public function showDocument(Document $document, Category $category): Response
889889
{
890890
// the database queries in this case would be:
@@ -894,7 +894,7 @@ When adding route parameters, you can now define the mapping between the route p
894894

895895
.. versionadded:: 7.1
896896

897-
The ``Mapped Route Parameters`` was introduced in Symfony 7.1.
897+
The Mapped Route Parameters was introduced in Symfony 7.1.
898898

899899
Updating an Object
900900
------------------

0 commit comments

Comments
 (0)