Handle functions like filters
authorArnaud Le Blanc <arnaud.lb@gmail.com>
Fri, 24 Dec 2010 16:21:10 +0000 (17:21 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Thu, 30 Dec 2010 08:31:08 +0000 (09:31 +0100)
commitc225a5bed92616e69b13888e47ca2f99fe26731e
tree03cdf9122f4dd84d875a534649ef685a85d1495e
parentb247452ec575899c7bc7f19ab8e648276d953119
Handle functions like filters

Functions are not global variables anymore. They are resolved at
compile time, and Twig_Function objects are instanciated only when
compiling.
14 files changed:
lib/Twig/Environment.php
lib/Twig/Extension.php
lib/Twig/Extension/Core.php
lib/Twig/ExtensionInterface.php
lib/Twig/Function.php
lib/Twig/Function/Function.php [new file with mode: 0644]
lib/Twig/Function/Method.php [new file with mode: 0644]
lib/Twig/FunctionInterface.php [new file with mode: 0644]
lib/Twig/Node/Expression/Function.php
test/Twig/Tests/Fixtures/expressions/function.test [deleted file]
test/Twig/Tests/Fixtures/globals.test [deleted file]
test/Twig/Tests/Fixtures/tags/from.test [new file with mode: 0644]
test/Twig/Tests/Fixtures/tags/include/only.test
test/Twig/Tests/integrationTest.php