1 2 3 4 5 6
<?php $env = new Twig_Environment(); $env->addFunction(new Twig_SimpleFunction('anonymous', function () {})); return $env;