src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php
protected function installDefaultPagePartConfiguration($bundle)
    {
        // Pagepart configuration
        if ($this->isSymfony4()) {
            $dirPath = $this->container->getParameter('kernel.project_dir') . '/config/kunstmaancms/pageparts/';
        } else {
            $dirPath = sprintf('%s/Resources/config/pageparts/', $bundle->getPath());
        }

        $skeletonDir = sprintf('%s/Resources/config/pageparts/', GeneratorUtils::getFullSkeletonPath('/common'));

        // Only copy when folder does not exist yet
        if (!$this->filesystem->exists($dirPath)) {
            $files = array('footer.yml', 'main.yml', 'left-sidebar.yml', 'right-sidebar.yml');
            foreach ($files as $file) {
                $this->filesystem->copy($skeletonDir . $file, $dirPath . $file, false);
            }
        }
    }
protected function installDefaultPagePartConfiguration($bundle)
    {
        // Pagepart configuration
        if ($this->isSymfony4()) {
            $dirPath = $this->container->getParameter('kernel.project_dir') . '/config/kunstmaancms/pageparts/';
        } else {
            $dirPath = sprintf('%s/Resources/config/pageparts/', $bundle->getPath());
        }

        $skeletonDir = sprintf('%s/Resources/config/pageparts/', GeneratorUtils::getFullSkeletonPath('/common'));

        // Only copy when folder does not exist yet
        if (!$this->filesystem->exists($dirPath)) {
            $files = array('footer.yml', 'main.yml', 'left-sidebar.yml', 'right-sidebar.yml');
            foreach ($files as $file) {
                $this->filesystem->copy($skeletonDir . $file, $dirPath . $file, false);
            }
        }
    }
protected function installDefaultPagePartConfiguration ( $ bundle ) { // Pagepart configuration if ( $ this -> isSymfony4 ( ) ) { $ dirPath = $ this -> container -> getParameter ( 'kernel.project_dir' ) . '/config/kunstmaancms/pageparts/' ; } else { $ dirPath = sprintf ( '%s/Resources/config/pageparts/' , $ bundle -> getPath ( ) ) ; } $ skeletonDir = sprintf ( '%s/Resources/config/pageparts/' , GeneratorUtils :: getFullSkeletonPath ( '/common' ) ) ; // Only copy when folder does not exist yet if ( ! $ this -> filesystem -> exists ( $ dirPath ) ) { $ files = array ( 'footer.yml' , 'main.yml' , 'left-sidebar.yml' , 'right-sidebar.yml' ) ; foreach ( $ files as $ file ) { $ this -> filesystem -> copy ( $ skeletonDir . $ file , $ dirPath . $ file , false ) ; } } }
Install the default pagepart configuration.

@param BundleInterface $bundle
Install the default pagepart configuration .