mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-14 06:16:21 +00:00
b2f449f14e
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-b18733bcadded the possibility to register classes/interfaces as being safe for the escaper