This document lists all deprecated features in Twig. Deprecated features are kept for backward compatibility and removed in the next major release (a feature that was deprecated in Twig 1.x is removed in Twig 2.0).
Twig_TokenParserBrokerInterfaceTwig_TokenParserBrokerTwig_Environment::removeExtension() method will be removed in 2.0.PEAR support will be discontinued in Twig 2.0, and no PEAR packages will be provided. Use Composer instead.
Twig_SimpleFilter to add a filter. The following
classes and interfaces will be removed in 2.0:Twig_FilterInterfaceTwig_FilterCallableInterfaceTwig_FilterTwig_Filter_FunctionTwig_Filter_MethodTwig_Filter_NodeTwig_SimpleFilter class is deprecated and will be
removed in Twig 3.x (use Twig_Filter instead). In Twig 2.x,
Twig_SimpleFilter is just an alias for Twig_Filter.Twig_SimpleFunction to add a function. The following
classes and interfaces will be removed in 2.0:Twig_FunctionInterfaceTwig_FunctionCallableInterfaceTwig_FunctionTwig_Function_FunctionTwig_Function_MethodTwig_Function_NodeTwig_SimpleFunction class is deprecated and will be
removed in Twig 3.x (use Twig_Function instead). In Twig 2.x,
Twig_SimpleFunction is just an alias for Twig_Function.Twig_SimpleTest to add a test. The following classes
and interfaces will be removed in 2.0:Twig_TestInterfaceTwig_TestCallableInterfaceTwig_TestTwig_Test_FunctionTwig_Test_MethodTwig_Test_NodeTwig_SimpleTest class is deprecated and will be
removed in Twig 3.x (use Twig_Test instead). In Twig 2.x,
Twig_SimpleTest is just an alias for Twig_Test.Twig_CompilerInterface (use Twig_Compiler instead)Twig_LexerInterface (use Twig_Lexer instead)Twig_NodeInterface (use Twig_Node instead)Twig_ParserInterface (use Twig_Parser instead)Twig_ExistsLoaderInterface (merged with Twig_LoaderInterface)Twig_TemplateInterface (use Twig_Template instead)