Fabien Potencier
Fabien Potencier
Implementation will tell us.
Indeed stof. But again, let’s talk about implementation in a PR
Looks like it breaks some tests.
@tucksaun @jpauli Can you have a look at the C part of this PR?
This PR was auto-closed because I've removed the master branch and this PR was based on master. I cannot reopen it unfortunately.
Changing the base branch to 2.x worked :)
This one never moved forward as we did not get feedback on the C implementation. I propose to rebase it on 2.x where we don't have the C extension.
Anyone willing to work on a fix?
Can't you mutate the sandbox via a call like the following? ```php $this->twig->getExtension(SandboxExtension::class)->setSecurityPolicy($policy); ```
All functions are prefixed with `twig_`, so there should be no conflicts. In any case, that would be a BC break.