Changeset 1101:7273894e61b8 for inc/libs/twig/Function.php
- Timestamp:
- 02/15/13 08:35:19 (13 years ago)
- Branch:
- twig
- Children:
- 1106:a4487f3ca4b4, 1147:2e5cb79e4782
- File:
-
- 1 edited
-
inc/libs/twig/Function.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
inc/libs/twig/Function.php
r991 r1101 13 13 * Represents a template function. 14 14 * 15 * Use Twig_SimpleFunction instead. 16 * 15 17 * @package twig 16 18 * @author Fabien Potencier <fabien@symfony.com> 19 * @deprecated since 1.12 (to be removed in 2.0) 17 20 */ 18 abstract class Twig_Function implements Twig_FunctionInterface 21 abstract class Twig_Function implements Twig_FunctionInterface, Twig_FunctionCallableInterface 19 22 { 20 23 protected $options; … … 26 29 'needs_environment' => false, 27 30 'needs_context' => false, 31 'callable' => null, 28 32 ), $options); 29 33 } … … 61 65 return array(); 62 66 } 67 68 public function getCallable() 69 { 70 return $this->options['callable']; 71 } 63 72 }
Note: See TracChangeset
for help on using the changeset viewer.
