diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php index e49fd8654b2d..ac6059738e75 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php @@ -54,6 +54,8 @@ private function addFormSection(ArrayNodeDefinition $rootNode) return count($v['form']['resources']) > 0; }) ->then(function ($v) { + trigger_error('The twig.form.resources configuration key is deprecated since version 2.6 and will be removed in 3.0. Use the twig.form_themes configuration key instead.', E_USER_DEPRECATED); + $v['form_themes'] = array_values(array_unique(array_merge($v['form']['resources'], $v['form_themes']))); return $v;