You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -54,8 +54,6 @@ private function addFormSection(ArrayNodeDefinition $rootNode)
54
54
returncount($v['form']['resources']) > 0;
55
55
})
56
56
->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);
// Check deprecation before the config is processed to ensure
37
+
// the settings has been explicitly defined in a configuration file.
38
+
if (isset($configs['form']['resources'])) {
39
+
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);
0 commit comments