class AfxTemplateGenerator extends GeneratorService implements SitePackageGeneratorInterface (View source)

internal  
 

Service to generate site packages

Properties

protected PackageManager $packageManager
protected SimpleTemplateRenderer $simpleTemplateRenderer

Methods

array
generateSitePackage(string $packageKey)

Generate a site package and fill it with boilerplate data.

void
generateSitesFusionDirectory(FlowPackageInterface $package)

Render the whole directory of the fusion part

void
generateNodeTypesConfiguration(FlowPackageInterface $package)

Generate a example NodeTypes.yaml

void
generateAdditionalFolders(FlowPackageInterface $package)

Generate additional folders for site packages.

string
getTemplateFolder()

No description

string
getGeneratorName()

returns the human-readable name of the generator

Details

array generateSitePackage(string $packageKey)

Generate a site package and fill it with boilerplate data.

Parameters

string $packageKey

Return Value

array

Exceptions

InvalidConfigurationException
Exception
CorruptPackageException
InvalidPackageKeyException
PackageKeyAlreadyExistsException
UnknownPackageException
Exception
FilesException

protected void generateSitesFusionDirectory(FlowPackageInterface $package)

Render the whole directory of the fusion part

Parameters

FlowPackageInterface $package

Return Value

void

protected void generateNodeTypesConfiguration(FlowPackageInterface $package)

Generate a example NodeTypes.yaml

Parameters

FlowPackageInterface $package

Return Value

void

protected void generateAdditionalFolders(FlowPackageInterface $package)

Generate additional folders for site packages.

Parameters

FlowPackageInterface $package

Return Value

void

protected string getTemplateFolder()

No description

Return Value

string

string getGeneratorName()

returns the human-readable name of the generator

Return Value

string