File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -733,7 +733,7 @@ This can also be used to help resolve multiple arguments::
733
733
734
734
#[Route('/product/{id}/comments/{comment_id}')]
735
735
public function show(
736
- Product $product
736
+ Product $product,
737
737
#[MapEntity(expr: 'repository.find(comment_id)')]
738
738
Comment $comment
739
739
): Response {
@@ -755,9 +755,8 @@ control behavior:
755
755
756
756
#[Route('/product/{product_id}')]
757
757
public function show(
758
- Product $product
759
758
#[MapEntity(id: 'product_id')]
760
- Comment $comment
759
+ Product $product
761
760
): Response {
762
761
}
763
762
@@ -769,7 +768,7 @@ control behavior:
769
768
#[Route('/product/{category}/{slug}/comments/{comment_slug}')]
770
769
public function show(
771
770
#[MapEntity(mapping: ['category' => 'category', 'slug' => 'slug'])]
772
- Product $product
771
+ Product $product,
773
772
#[MapEntity(mapping: ['comment_slug' => 'slug'])]
774
773
Comment $comment
775
774
): Response {
@@ -782,7 +781,7 @@ control behavior:
782
781
#[Route('/product/{slug}/{date}')]
783
782
public function show(
784
783
#[MapEntity(exclude: ['date'])]
785
- Product $product
784
+ Product $product,
786
785
\DateTime $date
787
786
): Response {
788
787
}
You can’t perform that action at this time.
0 commit comments