private function toSimpleFunctions($functions, array $options = array()) { $result = array(); foreach ($functions as $function) { $result[] = new Twig_SimpleFunction($function, $function, $options); } return $result; }