Neos.SiteKickstarter/Classes/Service/GeneratorService.php
protected function generateSitesRootFusion($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Fusion/Root.fusion';

        $contextVariables = [
            'packageKey' => $packageKey,
            'siteName' => $siteName,
            'siteNodeName' => $this->generateSiteNodeName($packageKey)
        ];

        $fileContent = $this->renderSimpleTemplate($templatePathAndFilename, $contextVariables);

        $sitesRootFusionPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Fusion/Root.fusion';
        $this->generateFile($sitesRootFusionPathAndFilename, $fileContent);
    }
protected function generateSitesRootFusion($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Fusion/Root.fusion';

        $contextVariables = [
            'packageKey' => $packageKey,
            'siteName' => $siteName,
            'siteNodeName' => $this->generateSiteNodeName($packageKey)
        ];

        $fileContent = $this->renderSimpleTemplate($templatePathAndFilename, $contextVariables);

        $sitesRootFusionPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Fusion/Root.fusion';
        $this->generateFile($sitesRootFusionPathAndFilename, $fileContent);
    }
protected function generateSitesRootFusion ( $ packageKey , $ siteName ) { $ templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Fusion/Root.fusion' ; $ contextVariables = [ 'packageKey' => $ packageKey , 'siteName' => $ siteName , 'siteNodeName' => $ this -> generateSiteNodeName ( $ packageKey ) ] ; $ fileContent = $ this -> renderSimpleTemplate ( $ templatePathAndFilename , $ contextVariables ) ; $ sitesRootFusionPathAndFilename = $ this -> packageManager -> getPackage ( $ packageKey ) -> getResourcesPath ( ) . 'Private/Fusion/Root.fusion' ; $ this -> generateFile ( $ sitesRootFusionPathAndFilename , $ fileContent ) ; }
Generate basic root Fusion file.

@param string $packageKey
@param string $siteName
@return void
Generate basic root Fusion file .