Use the new syntax for prepending the load of twig templates in some Chill*Extension class

This commit is contained in:
Julien Fastré 2023-07-27 23:23:18 +02:00
parent 507bd5c6b5
commit dba1d0548e
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class ChillCustomFieldsExtension extends Extension implements PrependExtensionIn
// add form layout to twig resources // add form layout to twig resources
$twigConfig = [ $twigConfig = [
'form_themes' => [ 'form_themes' => [
'ChillCustomFieldsBundle:Form:fields.html.twig', '@ChillCustomFields/Form/fields.html.twig',
], ],
]; ];
$container->prependExtensionConfig('twig', $twigConfig); $container->prependExtensionConfig('twig', $twigConfig);

View File

@ -129,7 +129,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'fields' => $config['accompanying_periods_fields'], 'fields' => $config['accompanying_periods_fields'],
], ],
], ],
'form_themes' => ['ChillPersonBundle:Export:ListPersonFormFields.html.twig'], 'form_themes' => ['@ChillPerson/Export/ListPersonFormFields.html.twig'],
]; ];
$container->prependExtensionConfig('twig', $twigConfig); $container->prependExtensionConfig('twig', $twigConfig);