Skip to content

Commit 1b9b703

Browse files
author
Hugo Hamon
committed
[TwigBundle] adds missing deprecation notice for the twig.form.resources configuration key.
1 parent d6d0a0f commit 1b9b703

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ private function addFormSection(ArrayNodeDefinition $rootNode)
5454
return count($v['form']['resources']) > 0;
5555
})
5656
->then(function ($v) {
57+
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);
58+
5759
$v['form_themes'] = array_values(array_unique(array_merge($v['form']['resources'], $v['form_themes'])));
5860

5961
return $v;

0 commit comments

Comments
 (0)