Automatic Entity Fetching
Symfony can automatically fetch an entity if the route parameter matches an ID:
php #[Route('/product/{id}', name: 'product_show')] public function show(Product $product): Response { // Symfony already fetched the product for you! }