From f20b48890743bfe841e828ee604d311bfd682739 Mon Sep 17 00:00:00 2001 From: Igor Nikolaev Date: Tue, 4 Feb 2020 13:32:03 +0300 Subject: [PATCH] Add antispam form theme. --- CHANGELOG.md | 2 ++ DependencyInjection/DarvinUtilsExtension.php | 1 + Resources/config/app/twig.yaml | 3 +++ 3 files changed, 6 insertions(+) create mode 100644 Resources/config/app/twig.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index f5322a4..c0645eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,3 +98,5 @@ $ /usr/bin/env php bin/console darvin:utils:translations:title-case 7.3.2: Rename "Sluggable entity manager" => "Sluggable manager". 7.3.3: Disable alias services compiler pass. + +7.3.4: Add antispam form theme. diff --git a/DependencyInjection/DarvinUtilsExtension.php b/DependencyInjection/DarvinUtilsExtension.php index 59c391c..3511b10 100644 --- a/DependencyInjection/DarvinUtilsExtension.php +++ b/DependencyInjection/DarvinUtilsExtension.php @@ -112,6 +112,7 @@ public function prepend(ContainerBuilder $container): void (new ExtensionConfigurator($container, __DIR__.'/../Resources/config/app'))->configure([ 'doctrine', 'stof_doctrine_extensions', + 'twig', ]); if ($container->hasExtension('framework') || $container->hasExtension('twig')) { diff --git a/Resources/config/app/twig.yaml b/Resources/config/app/twig.yaml new file mode 100644 index 0000000..f88682b --- /dev/null +++ b/Resources/config/app/twig.yaml @@ -0,0 +1,3 @@ +twig: + form_themes: + - '@DarvinUtils/fields.html.twig'