[TwigBundle] added some missing deprecation notices

This commit is contained in:
Fabien Potencier 2015-01-14 07:07:11 +01:00
parent 98243180df
commit ec6793ca72

View File

@ -56,6 +56,8 @@ class ActionsExtension extends \Twig_Extension
*/ */
public function renderUri($uri, array $options = array()) public function renderUri($uri, array $options = array())
{ {
trigger_error('The Twig render tag was deprecated in version 2.2 and will be removed in version 3.0. Use the Twig render function instead.', E_USER_DEPRECATED);
$strategy = isset($options['strategy']) ? $options['strategy'] : 'inline'; $strategy = isset($options['strategy']) ? $options['strategy'] : 'inline';
unset($options['strategy']); unset($options['strategy']);