芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/shimoda/vendor/twig/twig/lib/Twig/Test/Method.php
* * @deprecated since 1.12 (to be removed in 2.0) */ class Twig_Test_Method extends Twig_Test { protected $extension; protected $method; public function __construct(Twig_ExtensionInterface $extension, $method, array $options = array()) { $options['callable'] = array($extension, $method); parent::__construct($options); $this->extension = $extension; $this->method = $method; } public function compile() { return sprintf('$this->env->getExtension(\'%s\')->%s', get_class($this->extension), $this->method); } }