Fabien Potencier 3ef56b7284 feature #4803 Deprecate the "Twig\Sandbox\SourcePolicyInterface" interface (fabpot)
This PR was merged into the 3.x branch.

Discussion
----------

Deprecate the "Twig\Sandbox\SourcePolicyInterface" interface

I'm deprecating this feature for the following main reasons:

* AFAICS, no open-source projects is using this feature and the only repository using it has 0 stars and 0 downloads on Packagist - if nobody find value in this feature, it's better to remove it
* As much as possible, a better strategy is to render templates written by untrusted users via a specific loader that restrict what the sandbox environment can "see".

Commits
-------

bd924d5d33 Deprecate the "Twig\Sandbox\SourcePolicyInterface" interface
2026-05-23 08:30:15 +02:00
2026-05-22 12:38:21 +02:00
2026-02-07 09:07:38 +01:00
2026-02-07 09:12:49 +01:00

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

Twig is a template language for PHP.

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

Sponsors
--------

.. raw:: html

    <a href="https://docs.blackfire.io/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
        <img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
    </a>

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

Read the `documentation`_ for more information.

.. _documentation: https://twig.symfony.com/documentation
Languages
PHP 99.9%