From 8563e040c9c45b3c07d73cd8397be1788a6ff49f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 16 Nov 2012 17:47:28 +0100 Subject: [PATCH] deprecated the token parser broker sub-system --- doc/deprecated.rst | 14 ++++++++++++++ doc/index.rst | 1 + lib/Twig/TokenParserBroker.php | 2 ++ lib/Twig/TokenParserBrokerInterface.php | 2 ++ 4 files changed, 19 insertions(+), 0 deletions(-) create mode 100644 doc/deprecated.rst diff --git a/doc/deprecated.rst b/doc/deprecated.rst new file mode 100644 index 0000000..88c08d3 --- /dev/null +++ b/doc/deprecated.rst @@ -0,0 +1,14 @@ +Deprecated Features +=================== + +This document lists all deprecated features in Twig 1.x. They are kept for +backward compatibility but they will be removed in Twig 2.0. + +Token Parsers +------------- + +* The token parser broker sub-system is deprecated; the following class and + interface will be removed in 2.0: + + * ``Twig_TokenParserBrokerInterface`` + * ``Twig_TokenParserBroker`` diff --git a/doc/index.rst b/doc/index.rst index 56012f7..3e5166c 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -15,3 +15,4 @@ Twig filters/index functions/index tests/index + deprecated diff --git a/lib/Twig/TokenParserBroker.php b/lib/Twig/TokenParserBroker.php index f2c27ee..71b2436 100644 --- a/lib/Twig/TokenParserBroker.php +++ b/lib/Twig/TokenParserBroker.php @@ -15,6 +15,8 @@ * * @package twig * @author Arnaud Le Blanc + * + * @deprecated */ class Twig_TokenParserBroker implements Twig_TokenParserBrokerInterface { diff --git a/lib/Twig/TokenParserBrokerInterface.php b/lib/Twig/TokenParserBrokerInterface.php index b8e3c23..c33c50b 100644 --- a/lib/Twig/TokenParserBrokerInterface.php +++ b/lib/Twig/TokenParserBrokerInterface.php @@ -17,6 +17,8 @@ * * @package twig * @author Arnaud Le Blanc + * + * @deprecated */ interface Twig_TokenParserBrokerInterface { -- 1.7.2.5