From 2c40fb0e61574450f37909517aa480c742cbf3c5 Mon Sep 17 00:00:00 2001 From: Krzysiej Date: Fri, 2 Jan 2026 12:15:42 +0100 Subject: [PATCH] Update --- bin/cachewarmup | 2 ++ src/Command/CacheWarmCommand.php | 2 +- templates/productList.html.twig | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100755 bin/cachewarmup diff --git a/bin/cachewarmup b/bin/cachewarmup new file mode 100755 index 0000000..13196f6 --- /dev/null +++ b/bin/cachewarmup @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +bin/cli php console.php app:cache:warm-twig \ No newline at end of file diff --git a/src/Command/CacheWarmCommand.php b/src/Command/CacheWarmCommand.php index 4c8d167..6e6d618 100644 --- a/src/Command/CacheWarmCommand.php +++ b/src/Command/CacheWarmCommand.php @@ -16,7 +16,7 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\HttpFoundation\RequestStack; use Twig\Environment; -#[AsCommand(name: 'app:cache:warm-twig', description: '')] +#[AsCommand(name: 'app:cache:warm-twig', description: 'Warmup twig cache')] class CacheWarmCommand extends Command { public function __construct( diff --git a/templates/productList.html.twig b/templates/productList.html.twig index c0ba7e9..0d931cf 100644 --- a/templates/productList.html.twig +++ b/templates/productList.html.twig @@ -37,7 +37,7 @@ {{ product.subTitle }} -