src/Kunstmaan/GeneratorBundle/Generator/LayoutGenerator.php
private function generateTemplate()
    {
        $relPath = '/Resources/views/';
        $this->renderFiles(
            $this->skeletonDir . $relPath,
            $this->getTemplateDir($this->bundle),
            array('bundle' => $this->bundle, 'demosite' => $this->demosite, 'shortBundleName' => $this->shortBundleName, 'isV4' => $this->isSymfony4()),
            true
        );

        if (!$this->demosite) {
            // Layout
            $this->removeFile($this->getTemplateDir($this->bundle) . '/Layout/_mobile-nav.html.twig');
            $this->removeFile($this->getTemplateDir($this->bundle) . '/Layout/_demositemessage.html.twig');
        }

        $this->assistant->writeLine('Generating template files : <info>OK</info>');
    }
private function generateTemplate()
    {
        $relPath = '/Resources/views/';
        $this->renderFiles(
            $this->skeletonDir . $relPath,
            $this->getTemplateDir($this->bundle),
            array('bundle' => $this->bundle, 'demosite' => $this->demosite, 'shortBundleName' => $this->shortBundleName, 'isV4' => $this->isSymfony4()),
            true
        );

        if (!$this->demosite) {
            // Layout
            $this->removeFile($this->getTemplateDir($this->bundle) . '/Layout/_mobile-nav.html.twig');
            $this->removeFile($this->getTemplateDir($this->bundle) . '/Layout/_demositemessage.html.twig');
        }

        $this->assistant->writeLine('Generating template files : <info>OK</info>');
    }
private function generateTemplate ( ) { $ relPath = '/Resources/views/' ; $ this -> renderFiles ( $ this -> skeletonDir . $ relPath , $ this -> getTemplateDir ( $ this -> bundle ) , array ( 'bundle' => $ this -> bundle , 'demosite' => $ this -> demosite , 'shortBundleName' => $ this -> shortBundleName , 'isV4' => $ this -> isSymfony4 ( ) ) , true ) ; if ( ! $ this -> demosite ) { // Layout $ this -> removeFile ( $ this -> getTemplateDir ( $ this -> bundle ) . '/Layout/_mobile-nav.html.twig' ) ; $ this -> removeFile ( $ this -> getTemplateDir ( $ this -> bundle ) . '/Layout/_demositemessage.html.twig' ) ; } $ this -> assistant -> writeLine ( 'Generating template files : <info>OK</info>' ) ; }
Generate the twig template files.
Generate the twig template files .