This commit is contained in:
Fabien Potencier
2019-03-12 16:38:19 +01:00
parent dd22fe6f84
commit fb19ea7dde
6 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -18,9 +18,6 @@ use Twig\TwigFilter;
use Twig\TwigFunction;
use Twig\TwigTest;
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Environment');
/**
* Interface implemented by extension classes.
*
@@ -99,3 +96,6 @@ interface ExtensionInterface
}
class_alias('Twig\Extension\ExtensionInterface', 'Twig_ExtensionInterface');
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Environment');
+3 -3
View File
@@ -14,9 +14,6 @@ namespace Twig\Node;
use Twig\Compiler;
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Compiler');
/**
* Represents a node in the AST.
*
@@ -260,3 +257,6 @@ class Node implements \Twig_NodeInterface
}
class_alias('Twig\Node\Node', 'Twig_Node');
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Compiler');
+3 -3
View File
@@ -13,9 +13,6 @@ namespace Twig\NodeVisitor;
use Twig\Environment;
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Environment');
/**
* Interface for node visitor classes.
*
@@ -48,3 +45,6 @@ interface NodeVisitorInterface
}
class_alias('Twig\NodeVisitor\NodeVisitorInterface', 'Twig_NodeVisitorInterface');
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Environment');
+4 -4
View File
@@ -15,10 +15,6 @@ use Twig\Error\SyntaxError;
use Twig\Parser;
use Twig\Token;
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Token');
class_exists('Twig\Parser');
/**
* Interface implemented by token parsers.
*
@@ -49,3 +45,7 @@ interface TokenParserInterface
}
class_alias('Twig\TokenParser\TokenParserInterface', 'Twig_TokenParserInterface');
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Token');
class_exists('Twig\Parser');
+3 -3
View File
@@ -13,9 +13,6 @@ namespace Twig;
use Twig\Node\Node;
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Node\Node');
/**
* Represents a template filter.
*
@@ -126,3 +123,6 @@ class TwigFilter
}
class_alias('Twig\TwigFilter', 'Twig_SimpleFilter');
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Node\Node');
+3 -3
View File
@@ -13,9 +13,6 @@ namespace Twig;
use Twig\Node\Node;
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Node\Node');
/**
* Represents a template function.
*
@@ -116,3 +113,6 @@ class TwigFunction
}
class_alias('Twig\TwigFunction', 'Twig_SimpleFunction');
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
class_exists('Twig\Node\Node');