Skip to content

Commit

Permalink
[TwigBundle] adds missing deprecation notice for the twig.form.resour…
Browse files Browse the repository at this point in the history
…ces configuration key.
  • Loading branch information
Hugo Hamon committed Jan 8, 2015
1 parent c7bee8f commit 07beabf
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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;
Expand Down

0 comments on commit 07beabf

Please sign in to comment.