Neos.Neos/Classes/Domain/Service/FusionService.php
public function getMergedFusionObjectTree(TraversableNodeInterface $startNode)
    {
        $siteResourcesPackageKey = $this->getSiteForSiteNode($startNode)->getSiteResourcesPackageKey();

        $siteRootFusionPathAndFilename = sprintf($this->siteRootFusionPattern, $siteResourcesPackageKey);
        $siteRootFusionCode = $this->readExternalFusionFile($siteRootFusionPathAndFilename);

        $mergedFusionCode = '';
        $mergedFusionCode .= $this->generateNodeTypeDefinitions();
        $mergedFusionCode .= $this->getFusionIncludes($this->prepareAutoIncludeFusion());
        $mergedFusionCode .= $this->getFusionIncludes($this->prependFusionIncludes);
        $mergedFusionCode .= $siteRootFusionCode;
        $mergedFusionCode .= $this->getFusionIncludes($this->appendFusionIncludes);

        return $this->fusionParser->parse($mergedFusionCode, $siteRootFusionPathAndFilename);
    }
public function getMergedFusionObjectTree(TraversableNodeInterface $startNode)
    {
        $siteResourcesPackageKey = $this->getSiteForSiteNode($startNode)->getSiteResourcesPackageKey();

        $siteRootFusionPathAndFilename = sprintf($this->siteRootFusionPattern, $siteResourcesPackageKey);
        $siteRootFusionCode = $this->readExternalFusionFile($siteRootFusionPathAndFilename);

        $mergedFusionCode = '';
        $mergedFusionCode .= $this->generateNodeTypeDefinitions();
        $mergedFusionCode .= $this->getFusionIncludes($this->prepareAutoIncludeFusion());
        $mergedFusionCode .= $this->getFusionIncludes($this->prependFusionIncludes);
        $mergedFusionCode .= $siteRootFusionCode;
        $mergedFusionCode .= $this->getFusionIncludes($this->appendFusionIncludes);

        return $this->fusionParser->parse($mergedFusionCode, $siteRootFusionPathAndFilename);
    }
public function getMergedFusionObjectTree ( TraversableNodeInterface $ startNode ) { $ siteResourcesPackageKey = $ this -> getSiteForSiteNode ( $ startNode ) -> getSiteResourcesPackageKey ( ) ; $ siteRootFusionPathAndFilename = sprintf ( $ this -> siteRootFusionPattern , $ siteResourcesPackageKey ) ; $ siteRootFusionCode = $ this -> readExternalFusionFile ( $ siteRootFusionPathAndFilename ) ; $ mergedFusionCode = '' ; $ mergedFusionCode .= $ this -> generateNodeTypeDefinitions ( ) ; $ mergedFusionCode .= $ this -> getFusionIncludes ( $ this -> prepareAutoIncludeFusion ( ) ) ; $ mergedFusionCode .= $ this -> getFusionIncludes ( $ this -> prependFusionIncludes ) ; $ mergedFusionCode .= $ siteRootFusionCode ; $ mergedFusionCode .= $ this -> getFusionIncludes ( $ this -> appendFusionIncludes ) ; return $ this -> fusionParser -> parse ( $ mergedFusionCode , $ siteRootFusionPathAndFilename ) ; }
Returns a merged Fusion object tree in the context of the given nodes

@param TraversableNodeInterface $startNode Node marking the starting point (i.e. the "Site" node)
@return array The merged object tree as of the given node
@throws \Neos\Neos\Domain\Exception
@throws \Neos\Fusion\Exception
Returns a merged Fusion object tree in the context of the given nodes