Render category tree on category pages #56

Merged
krzysiej merged 1 commits from feature/category-tree into master 2026-01-26 12:57:21 +01:00
Showing only changes of commit 62c6538b89 - Show all commits

View File

@@ -11,9 +11,9 @@ final class CategoryController extends BaseController
#[Route('/category/{category}', name: 'app_category')] #[Route('/category/{category}', name: 'app_category')]
public function __invoke(string $category): Response public function __invoke(string $category): Response
{ {
// if($this->cache->getItem('list_category_'.$category)->isHit()) { if($this->cache->getItem('list_category_'.$category)->isHit()) {
// return $this->render('productList.html.twig', ['listType' => 'category_'.$category]); return $this->render('productList.html.twig', ['listType' => 'category_'.$category]);
// } }
/** @var Product[] $products */ /** @var Product[] $products */
$products = Product::with(['price', 'lowestPrice']) $products = Product::with(['price', 'lowestPrice'])