This commit is contained in:
lubiana 2025-06-09 19:56:08 +02:00
parent 66c4c1fe4f
commit 2c2e34b71e
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
42 changed files with 910 additions and 939 deletions

View file

@ -6,10 +6,12 @@ use App\Service\Config\AppName;
use Symfony\Config\TwigConfig;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
return static function (ContainerConfigurator $containerConfigurator, TwigConfig $twig): void {
$twig->fileNamePattern('*.twig');
$twig->formThemes(['bootstrap_5_layout.html.twig']);
$twig->global('appName', \Symfony\Component\DependencyInjection\Loader\Configurator\service(AppName::class));
$twig->formThemes(['form/theme.html.twig']);
$twig->global('appName', service(AppName::class));
if ($containerConfigurator->env() === 'test') {
$twig->strictVariables(true);
}