Fabien Potencier b2f449f14e feature #3025 Add the possibility to register classes/interface as being safe (fabpot)
This PR was squashed before being merged into the 2.x branch (closes #3025).

Discussion
----------

Add the possibility to register classes/interface as being safe

closes #2548

To avoid a too big performance impact on the escaper, we aggressively cache the safe classes, which means that changing the. configuration at runtime is not possible (and having different ones on 2 Twig instances is not possible either, this is really *globally* configured).

Commits
-------

fe6503fe -
b18733bc added the possibility to register classes/interfaces as being safe for the escaper
2019-05-25 12:23:33 +02:00
2019-03-20 19:20:25 +01:00
-
2019-05-21 16:09:37 +02:00
-
2019-05-21 16:09:37 +02:00
2019-02-15 06:17:13 +01:00
2019-05-14 08:46:40 +02:00
2019-05-17 08:23:38 +02:00
2019-05-01 15:44:34 +02:00
2019-01-01 18:34:43 +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: https://twig.symfony.com/documentation
Languages
PHP 99.9%