vendor/symfony/ux-twig-component/src/Twig/TwigEnvironmentConfigurator.php line 29
<?php/** This file is part of the Symfony package.** (c) Fabien Potencier <fabien@symfony.com>** For the full copyright and license information, please view the LICENSE* file that was distributed with this source code.*/namespace Symfony\UX\TwigComponent\Twig;use Symfony\Bundle\TwigBundle\DependencyInjection\Configurator\EnvironmentConfigurator;use Symfony\UX\TwigComponent\ComponentAttributes;use Twig\Environment;use Twig\Extension\EscaperExtension;/*** @final*/class TwigEnvironmentConfigurator{public function __construct(private readonly EnvironmentConfigurator $decorated,) {}public function configure(Environment $environment): void{$this->decorated->configure($environment);$environment->setLexer(new ComponentLexer($environment));if ($environment->hasExtension(EscaperExtension::class)) {$environment->getExtension(EscaperExtension::class)->addSafeClass(ComponentAttributes::class, ['html']);}}}