diff --git a/src/Controller/CategoryController.php b/src/Controller/CategoryController.php index 584c93a..c950ae1 100644 --- a/src/Controller/CategoryController.php +++ b/src/Controller/CategoryController.php @@ -8,7 +8,7 @@ use Symfony\Component\Routing\Attribute\Route; final class CategoryController extends BaseController { - #[Route('/category/{category?}', name: 'app_category', defaults: ["category" => null])] + #[Route('/category/{category?}', name: 'app_category')] public function __invoke(?string $category): Response { if($this->cache->getItem('list_category_'.$category)->isHit()) {