futtern/config/packages/twig.php
lubiana 7663f684a4
All checks were successful
/ ls (pull_request) Successful in 29s
/ ls (push) Successful in 29s
lint
2024-06-10 20:23:36 +02:00

14 lines
458 B
PHP

<?php declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->extension('twig', [
'file_name_pattern' => '*.twig',
]);
if ($containerConfigurator->env() === 'test') {
$containerConfigurator->extension('twig', [
'strict_variables' => true,
]);
}
};