Skip to content

Commit f9487b7

Browse files
committed
Prefer placing services before query parameters
1 parent 06b180c commit f9487b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ and injected by the dependency injection container::
539539
class ProductController extends AbstractController
540540
{
541541
#[Route('/product/{id}', name: 'product_show')]
542-
public function show(int $id, ProductRepository $productRepository): Response
542+
public function show(ProductRepository $productRepository, int $id): Response
543543
{
544544
$product = $productRepository
545545
->find($id);

0 commit comments

Comments
 (0)