Neos.SiteKickstarter/Classes/Service/GeneratorService.php
protected function generateSitesXml($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Content/Sites.xml';

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

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

        $sitesXmlPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Content/Sites.xml';
        $this->generateFile($sitesXmlPathAndFilename, $fileContent);
    }
protected function generateSitesXml($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Content/Sites.xml';

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

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

        $sitesXmlPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Content/Sites.xml';
        $this->generateFile($sitesXmlPathAndFilename, $fileContent);
    }
protected function generateSitesXml ( $ packageKey , $ siteName ) { $ templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Content/Sites.xml' ; $ contextVariables = [ 'packageKey' => $ packageKey , 'siteName' => htmlspecialchars ( $ siteName ) , 'siteNodeName' => $ this -> generateSiteNodeName ( $ packageKey ) , 'dimensions' => $ this -> contentDimensionRepository -> findAll ( ) ] ; $ fileContent = $ this -> renderTemplate ( $ templatePathAndFilename , $ contextVariables ) ; $ sitesXmlPathAndFilename = $ this -> packageManager -> getPackage ( $ packageKey ) -> getResourcesPath ( ) . 'Private/Content/Sites.xml' ; $ this -> generateFile ( $ sitesXmlPathAndFilename , $ fileContent ) ; }
Generate a "Sites.xml" for the given package and name.

@param string $packageKey
@param string $siteName
@return void
Generate a Sites . xml for the given package and name .