revert deprecations for a smooth upgrade path

Let users safely migrate their code to Twig 2.0. These deprecations
should be readded in Twig 2.1.
This commit is contained in:
Christian Flothmann
2016-10-14 15:41:22 +02:00
committed by Christian Flothmann
parent 907366d053
commit 232e5bee8c
6 changed files with 0 additions and 16 deletions
-2
View File
@@ -11,8 +11,6 @@
/**
* Empty interface for Twig 1.x compatibility.
*
* @deprecated to be removed in 3.0
*/
interface Twig_ExistsLoaderInterface extends Twig_LoaderInterface
{
@@ -16,8 +16,6 @@
* deprecated initRuntime() method in your extensions.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @deprecated to be removed in 3.0
*/
interface Twig_Extension_InitRuntimeInterface
{
-6
View File
@@ -259,14 +259,8 @@ class Twig_Parser
{
$this->macros[$name] = $node;
}
/**
* @deprecated since 2.0. Will be removed in 3.0. There is no reserved macro names anymore
*/
public function isReservedMacroName($name)
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.0 and will be removed in 3.0.', E_USER_DEPRECATED);
return false;
}
-2
View File
@@ -11,8 +11,6 @@
/**
* Empty class for Twig 1.x compatibility.
*
* @deprecated to be removed in 3.0
*/
class Twig_SimpleFilter extends Twig_Filter
{
-2
View File
@@ -11,8 +11,6 @@
/**
* Empty class for Twig 1.x compatibility.
*
* @deprecated to be removed in 3.0
*/
class Twig_SimpleFunction extends Twig_Function
{
-2
View File
@@ -11,8 +11,6 @@
/**
* Empty class for Twig 1.x compatibility.
*
* @deprecated to be removed in 3.0
*/
class Twig_SimpleTest extends Twig_Test
{