Upgrade symfony from 7 to 8. Remove cache since it is now faster to open website.

This commit was merged in pull request #62.
This commit is contained in:
2026-02-07 09:27:19 +01:00
parent 1303b4ad8a
commit 7e2658b174
17 changed files with 310 additions and 485 deletions

View File

@@ -19,10 +19,6 @@ final class ProductController extends BaseController
#[Route('/product/{productId<\d+>}', name: 'app_product')]
public function __invoke(int $productId): Response
{
if ($this->cache->getItem('product' . $productId)->isHit()) {
return $this->render('product.html.twig', ['product' => ['id' => $productId]]);
}
$product = Product::with([
'price' => fn($query) => $query->orderBy('created_at', 'desc'),
'stock' => fn($query) => $query->orderBy('created_at', 'desc'),