vibe
This commit is contained in:
parent
837cfb6d43
commit
939840a3ac
76 changed files with 6636 additions and 83 deletions
16
config/packages/twig.php
Normal file
16
config/packages/twig.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Service\Config\AppName;
|
||||
use Symfony\Config\TwigConfig;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
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));
|
||||
if ($containerConfigurator->env() === 'test') {
|
||||
$twig->strictVariables(true);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue