src/Kunstmaan/GeneratorBundle/Generator/DefaultSiteGenerator.php
public function generateTwigExtensions($parameters)
    {
        $relPath = '/Twig/';
        if ($this->demosite) {
            $this->renderSingleFile($this->skeletonDir.$relPath, $this->bundle->getPath().$relPath, 'BikesTwigExtension.php', $parameters, true);
        }

        if ($this->isSymfony4()) {
            return;
        }

        $relPath = '/Resources/config/';
        $sourceDir = $this->skeletonDir.$relPath;
        $targetDir = $this->bundle->getPath().$relPath;
        $this->renderSingleFile($sourceDir, $targetDir, 'services.yml', $parameters, true);
    }
public function generateTwigExtensions($parameters)
    {
        $relPath = '/Twig/';
        if ($this->demosite) {
            $this->renderSingleFile($this->skeletonDir.$relPath, $this->bundle->getPath().$relPath, 'BikesTwigExtension.php', $parameters, true);
        }

        if ($this->isSymfony4()) {
            return;
        }

        $relPath = '/Resources/config/';
        $sourceDir = $this->skeletonDir.$relPath;
        $targetDir = $this->bundle->getPath().$relPath;
        $this->renderSingleFile($sourceDir, $targetDir, 'services.yml', $parameters, true);
    }
public function generateTwigExtensions ( $ parameters ) { $ relPath = '/Twig/' ; if ( $ this -> demosite ) { $ this -> renderSingleFile ( $ this -> skeletonDir . $ relPath , $ this -> bundle -> getPath ( ) . $ relPath , 'BikesTwigExtension.php' , $ parameters , true ) ; } if ( $ this -> isSymfony4 ( ) ) { return ; } $ relPath = '/Resources/config/' ; $ sourceDir = $ this -> skeletonDir . $ relPath ; $ targetDir = $ this -> bundle -> getPath ( ) . $ relPath ; $ this -> renderSingleFile ( $ sourceDir , $ targetDir , 'services.yml' , $ parameters , true ) ; }
Generate the twig extensions.

@param array $parameters The template parameters
Generate the twig extensions .