/** * Initializes the {@link $evaluator} property, and a bunch of functions. * * @param MarkupCollection $markups * @param FunctionCollection $functions */ public function __construct(MarkupCollection $markups, FunctionCollection $functions) { $this->markups = $markups; $this->functions = $functions; $this->evaluator = new Evaluator($this); $this->template_resolver = Render\get_template_resolver(); $this->init_context(); }
/** * Returns a clone of the shared template resolver. * * @return TemplateResolver */ public static function get_template_resolver() { return clone Render\get_template_resolver(); }