GeneratorService
class GeneratorService extends GeneratorService (View source)
Service to generate site packages
Properties
protected PackageManager | $packageManager | ||
protected ContentDimensionRepository | $contentDimensionRepository |
Methods
Generate a site package and fill it with boilerplate data.
Generate a "Sites.xml" for the given package and name.
Generate basic root Fusion file.
Generate basic Fusion documentNode file.
Generate basic template file.
Generate site node name based on the given package key
Generate a example NodeTypes.yaml
Generate additional folders for site packages.
Simplified template rendering
Details
array
generateSitePackage(string $packageKey, string $siteName)
Generate a site package and fill it with boilerplate data.
protected void
generateSitesXml(string $packageKey, string $siteName)
Generate a "Sites.xml" for the given package and name.
protected void
generateSitesRootFusion(string $packageKey, string $siteName)
Generate basic root Fusion file.
protected void
generateSitesPageFusion(string $packageKey, string $siteName)
Generate basic Fusion documentNode file.
protected void
generateDefaultTemplate(string $packageKey, string $siteName)
Generate basic template file.
protected string
generateSiteNodeName(string $packageKey)
Generate site node name based on the given package key
protected
generateNodeTypesConfiguration(string $packageKey)
Generate a example NodeTypes.yaml
protected
generateAdditionalFolders(string $packageKey)
Generate additional folders for site packages.
protected string
renderSimpleTemplate(string $templatePathAndFilename, array $contextVariables)
Simplified template rendering