Neos\SiteKickstarter\Service\GeneratorService::generateNodeTypesConfiguration PHP Метод

generateNodeTypesConfiguration() защищенный Метод

Generate a example NodeTypes.yaml
protected generateNodeTypesConfiguration ( string $packageKey ) : void
$packageKey string
Результат void
    protected function generateNodeTypesConfiguration($packageKey)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Configuration/NodeTypes.yaml';
        $fileContent = file_get_contents($templatePathAndFilename);
        $sitesTypoScriptPathAndFilename = $this->packageManager->getPackage($packageKey)->getConfigurationPath() . 'NodeTypes.yaml';
        $this->generateFile($sitesTypoScriptPathAndFilename, $fileContent);
    }