Browse Source

Fix: undefined

imwald
Nuša Pukšič 3 days ago
parent
commit
f02b5682ff
  1. 11
      src/Twig/Components/Organisms/FeaturedList.php

11
src/Twig/Components/Organisms/FeaturedList.php

@ -2,10 +2,9 @@
namespace App\Twig\Components\Organisms; namespace App\Twig\Components\Organisms;
use App\Service\Search\ArticleSearchInterface;
use Doctrine\DBAL\Exception;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;
use Elastica\Query;
use Elastica\Query\Terms;
use FOS\ElasticaBundle\Finder\FinderInterface;
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent; use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
#[AsTwigComponent] #[AsTwigComponent]
@ -19,12 +18,12 @@ final class FeaturedList
public function __construct( public function __construct(
private readonly EntityManagerInterface $entityManager, private readonly EntityManagerInterface $entityManager,
private readonly FinderInterface $finder) private readonly ArticleSearchInterface $articleSearch
{ ) {
} }
/** /**
* @throws \Exception * @throws \Exception|Exception
*/ */
public function mount($category): void public function mount($category): void
{ {

Loading…
Cancel
Save