Fabien Potencier 2555dd009c feature #2206 Move tests handling in Twig_ParserExpression instead of Twig_Extension_Core (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Move tests handling in Twig_ParserExpression instead of Twig_Extension_Core

In my quest to better organize the layers in Twig, I've always find the way we deal with test a bit awkward. This PR moves the code from the Core extension to the Parser, where it belongs, even if if makes hardcoding 'is' and 'is not' twice, but I think SOC is more important here. Especially as I want to remove the `getEnvironment()` from the Parser class at some point. Having everything centralized helps a lot.

Commits
-------

4deb03a deprecated Twig_Parser::getEnvironment()
0d6686e moved tests handling in Twig_ParserExpression instead of Twig_Extension_Core
2016-10-24 16:48:00 -07:00
2016-10-17 11:33:14 -07:00
2016-10-11 19:11:37 -07:00
2016-10-17 11:33:14 -07:00
2016-01-01 02:33:03 +01:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP, released under the new BSD license (code
and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: http://twig.sensiolabs.org/documentation
Languages
PHP 99.9%