[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
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ class ActionsExtension extends \Twig_Extension
*/
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';
unset($options['strategy']);