You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
520 B

<?php
declare(strict_types=1);
namespace App\Twig\Components;
use App\Service\MagazineContentService;
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
#[AsTwigComponent]
class Header
{
public array $cats;
public function __construct(
private readonly MagazineContentService $magazineContent,
) {
// Store only: never block the response on relay I/O (cron/pre-warm updates the store).
$this->cats = $this->magazineContent->getHomeCategoryAIndexTagsFromStoreOnly();
}
}