Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 886c651

Browse files
committed
refactor(config): Migrate twig.yaml to PHP
1 parent 915ce32 commit 886c651

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

config/packages/twig.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Config\TwigConfig;
6+
7+
use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
8+
use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
9+
10+
return static function (TwigConfig $twigConfig): void {
11+
$twigConfig
12+
->fileNamePattern('*.twig')
13+
->formThemes(['bootstrap_5_layout.html.twig'])
14+
->global('umami_domain', env('UMAMI_DOMAIN'))
15+
->global('umami_website_id', env('UMAMI_WEBSITE_ID'))
16+
->strictVariables(true)
17+
->global('appfeatures.hint', param('app.features.hint'))
18+
->global('appfeatures.comment', param('app.features.comment'));
19+
};

config/packages/twig.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)