src/Kunstmaan/GeneratorBundle/Generator/DefaultSiteGenerator.php
private function generateControllers(array $parameters)
    {
        $relPath = '/Controller/';
        $sourceDir = $this->skeletonDir.$relPath;
        $targetDir = $this->bundle->getPath().$relPath;

        $this->renderSingleFile($sourceDir, $targetDir, 'DefaultController.php', $parameters, true);

        if ($this->demosite) {
            $this->renderSingleFile($sourceDir, $targetDir, 'BikeAdminListController.php', $parameters, true);
        }

        $this->assistant->writeLine('Generating controllers : <info>OK</info>');
    }
private function generateControllers(array $parameters)
    {
        $relPath = '/Controller/';
        $sourceDir = $this->skeletonDir.$relPath;
        $targetDir = $this->bundle->getPath().$relPath;

        $this->renderSingleFile($sourceDir, $targetDir, 'DefaultController.php', $parameters, true);

        if ($this->demosite) {
            $this->renderSingleFile($sourceDir, $targetDir, 'BikeAdminListController.php', $parameters, true);
        }

        $this->assistant->writeLine('Generating controllers : <info>OK</info>');
    }
private function generateControllers ( array $ parameters ) { $ relPath = '/Controller/' ; $ sourceDir = $ this -> skeletonDir . $ relPath ; $ targetDir = $ this -> bundle -> getPath ( ) . $ relPath ; $ this -> renderSingleFile ( $ sourceDir , $ targetDir , 'DefaultController.php' , $ parameters , true ) ; if ( $ this -> demosite ) { $ this -> renderSingleFile ( $ sourceDir , $ targetDir , 'BikeAdminListController.php' , $ parameters , true ) ; } $ this -> assistant -> writeLine ( 'Generating controllers : <info>OK</info>' ) ; }
Generate controller classes.

@param array $parameters
Generate controller classes .