From ec6793ca723cb448c4adb5deb32a3bae294a6a7f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 14 Jan 2015 07:07:11 +0100 Subject: [PATCH] [TwigBundle] added some missing deprecation notices --- src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php b/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php index 9209a60db2..9a1ad01653 100644 --- a/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php +++ b/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php @@ -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']);