public function createRuntime(NodeInterface $currentSiteNode, ControllerContext $controllerContext) { $typoScriptObjectTree = $this->getMergedTypoScriptObjectTree($currentSiteNode); $typoScriptRuntime = new Runtime($typoScriptObjectTree, $controllerContext); return $typoScriptRuntime; }
/** * @param NodeInterface $currentSiteNode * @return \Neos\Fusion\Core\Runtime */ protected function getTypoScriptRuntime(NodeInterface $currentSiteNode) { if ($this->typoScriptRuntime === null) { $this->typoScriptRuntime = $this->typoScriptService->createRuntime($currentSiteNode, $this->controllerContext); if (isset($this->options['enableContentCache']) && $this->options['enableContentCache'] !== null) { $this->typoScriptRuntime->setEnableContentCache($this->options['enableContentCache']); } } return $this->typoScriptRuntime; }