From f02b5682ff5a5c6d2a4416121e3393fde00df1b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Thu, 8 Jan 2026 17:12:16 +0100 Subject: [PATCH] Fix: undefined --- src/Twig/Components/Organisms/FeaturedList.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Twig/Components/Organisms/FeaturedList.php b/src/Twig/Components/Organisms/FeaturedList.php index 5fb71dc..b91995a 100644 --- a/src/Twig/Components/Organisms/FeaturedList.php +++ b/src/Twig/Components/Organisms/FeaturedList.php @@ -2,10 +2,9 @@ namespace App\Twig\Components\Organisms; +use App\Service\Search\ArticleSearchInterface; +use Doctrine\DBAL\Exception; use Doctrine\ORM\EntityManagerInterface; -use Elastica\Query; -use Elastica\Query\Terms; -use FOS\ElasticaBundle\Finder\FinderInterface; use Symfony\UX\TwigComponent\Attribute\AsTwigComponent; #[AsTwigComponent] @@ -19,12 +18,12 @@ final class FeaturedList public function __construct( private readonly EntityManagerInterface $entityManager, - private readonly FinderInterface $finder) - { + private readonly ArticleSearchInterface $articleSearch + ) { } /** - * @throws \Exception + * @throws \Exception|Exception */ public function mount($category): void {