minor #13337 [TwigBundle] adds missing deprecation notice for the twig.form.resources configuration key. (hhamon)
This PR was merged into the 2.7 branch.
Discussion
----------
[TwigBundle] adds missing deprecation notice for the twig.form.resources configuration key.
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets | ~
| License | MIT
| Doc PR | ~
Commits
-------
07beabf
[TwigBundle] adds missing deprecation notice for the twig.form.resources configuration key.
This commit is contained in:
commit
70a739897c
@ -54,6 +54,8 @@ class Configuration implements ConfigurationInterface
|
||||
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;
|
||||
|
Reference in New Issue
Block a user