Neos\SiteKickstarter\Service\GeneratorService::generateSitesTypoScript PHP Method

generateSitesTypoScript() protected method

Generate basic TypoScript files.
protected generateSitesTypoScript ( string $packageKey, string $siteName ) : void
$packageKey string
$siteName string
return void
    protected function generateSitesTypoScript($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/TypoScript/Root.fusion';
        $contextVariables = array();
        $contextVariables['packageKey'] = $packageKey;
        $contextVariables['siteName'] = $siteName;
        $packageKeyDomainPart = substr(strrchr($packageKey, '.'), 1) ?: $packageKey;
        $contextVariables['siteNodeName'] = $packageKeyDomainPart;
        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);
        $sitesTypoScriptPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/TypoScript/Root.fusion';
        $this->generateFile($sitesTypoScriptPathAndFilename, $fileContent);
    }