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_Environment::removeExtension()method will be removed in 2.0.
PEAR support has been discontinued in Twig 1.15.1, and no PEAR packages is provided anymore. Use Composer instead.
Twig_SimpleFilterto add a filter. The following classes and interfaces will be removed in 2.0:
Twig_SimpleFilterclass is deprecated and will be removed in Twig 3.x (use
Twig_Filterinstead). In Twig 2.x,
Twig_SimpleFilteris just an alias for
Twig_SimpleFunctionto add a function. The following classes and interfaces will be removed in 2.0:
Twig_SimpleFunctionclass is deprecated and will be removed in Twig 3.x (use
Twig_Functioninstead). In Twig 2.x,
Twig_SimpleFunctionis just an alias for
Twig_SimpleTestto add a test. The following classes and interfaces will be removed in 2.0:
Twig_SimpleTestclass is deprecated and will be removed in Twig 3.x (use
Twig_Testinstead). In Twig 2.x,
Twig_SimpleTestis just an alias for
divisiblebytests are deprecated in favor of
Twig_Templateinstead, and use those constants Twig_Template::ANY_CALL, Twig_Template::ARRAY_CALL, Twig_Template::METHOD_CALL)