mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
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:
committed by
Christian Flothmann
parent
907366d053
commit
232e5bee8c
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
/**
|
||||
* Empty class for Twig 1.x compatibility.
|
||||
*
|
||||
* @deprecated to be removed in 3.0
|
||||
*/
|
||||
class Twig_SimpleFilter extends Twig_Filter
|
||||
{
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
/**
|
||||
* Empty class for Twig 1.x compatibility.
|
||||
*
|
||||
* @deprecated to be removed in 3.0
|
||||
*/
|
||||
class Twig_SimpleFunction extends Twig_Function
|
||||
{
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
/**
|
||||
* Empty class for Twig 1.x compatibility.
|
||||
*
|
||||
* @deprecated to be removed in 3.0
|
||||
*/
|
||||
class Twig_SimpleTest extends Twig_Test
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user