src/Kunstmaan/GeneratorBundle/Generator/DefaultSiteGenerator.php
public function generateRouting(array $parameters)
    {
        if ($this->isSymfony4()) {
            return;
        }

        $relPath = '/Resources/config/';
        $sourceDir = $this->skeletonDir.$relPath;
        $targetDir = $this->bundle->getPath().$relPath;

        $this->renderSingleFile($sourceDir, $targetDir, 'routing.yml', $parameters, true);

        $this->assistant->writeLine('Generating routing : <info>OK</info>');
    }
public function generateRouting(array $parameters)
    {
        if ($this->isSymfony4()) {
            return;
        }

        $relPath = '/Resources/config/';
        $sourceDir = $this->skeletonDir.$relPath;
        $targetDir = $this->bundle->getPath().$relPath;

        $this->renderSingleFile($sourceDir, $targetDir, 'routing.yml', $parameters, true);

        $this->assistant->writeLine('Generating routing : <info>OK</info>');
    }
public function generateRouting ( array $ parameters ) { if ( $ this -> isSymfony4 ( ) ) { return ; } $ relPath = '/Resources/config/' ; $ sourceDir = $ this -> skeletonDir . $ relPath ; $ targetDir = $ this -> bundle -> getPath ( ) . $ relPath ; $ this -> renderSingleFile ( $ sourceDir , $ targetDir , 'routing.yml' , $ parameters , true ) ; $ this -> assistant -> writeLine ( 'Generating routing : <info>OK</info>' ) ; }
Generate bundle routing configuration.

@param array $parameters The template parameters
Generate bundle routing configuration .