Neos\SiteKickstarter\Service\GeneratorService::generateSitesTemplate PHP 메소드

generateSitesTemplate() 보호된 메소드

Generate basic template file.
protected generateSitesTemplate ( string $packageKey, string $siteName ) : void
$packageKey string
$siteName string
리턴 void
    protected function generateSitesTemplate($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Template/SiteTemplate.html';
        $contextVariables = array();
        $contextVariables['siteName'] = $siteName;
        $contextVariables['neosViewHelper'] = '{namespace neos=Neos\\Neos\\ViewHelpers}';
        $contextVariables['typoScriptViewHelper'] = '{namespace ts=Neos\\Fusion\\ViewHelpers}';
        $packageKeyDomainPart = substr(strrchr($packageKey, '.'), 1) ?: $packageKey;
        $contextVariables['siteNodeName'] = lcfirst($packageKeyDomainPart);
        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);
        $sitesTypoScriptPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Templates/Page/Default.html';
        $this->generateFile($sitesTypoScriptPathAndFilename, $fileContent);
    }