Skip to content

Commit

Permalink
TASK: Remove unused functions from AfxTemplateGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaeslich committed Jun 10, 2024
1 parent d27a607 commit 6e2bc3c
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions Neos.SiteKickstarter/Classes/Generator/AfxTemplateGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,29 +70,6 @@ public function generateSitePackage(string $packageKey, string $siteName) : arra
return $this->generatedFiles;
}

/**
* Generate basic root Fusion file.
*
* @param string $packageKey
* @param string $siteName
* @throws \Neos\Flow\Package\Exception\UnknownPackageException
*/
protected function generateSitesRootFusion(string $packageKey, string $siteName) : void
{
$templatePathAndFilename = $this->getResourcePathForFile('Fusion/Root.fusion');

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

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

$sitesRootFusionPathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Fusion/Root.fusion';
$this->generateFile($sitesRootFusionPathAndFilename, $fileContent);
}

/**
* Render the whole directory of the fusion part
*
Expand All @@ -119,14 +96,6 @@ protected function generateSitesFusionDirectory(string $packageKey, string $site
);
}

/**
* Generate site node name based on the given package key
*/
protected function generateSiteNodeName(string $packageKey) : string
{
return NodeName::transliterateFromString($packageKey)->value;
}

/**
* Generate a example NodeTypes.yaml
*
Expand Down

0 comments on commit 6e2bc3c

Please sign in to comment.