/** * @param Bundle $bundle The bundle * @param string $entity The name of the entity * @param array $parameters The template parameters * @param OutputInterface $output */ public function generateRouting(Bundle $bundle, $entity, array $parameters, OutputInterface $output) { $dirPath = sprintf("%s/Resources/config", $bundle->getPath()); $skeletonDir = sprintf("%s/Resources/config", $this->skeletonDir); if ($this->multilanguage) { $routing = $this->render($skeletonDir . '/routing_multilanguage.yml', $parameters); } else { $routing = $this->render($skeletonDir . '/routing_singlelanguage.yml', $parameters); } GeneratorUtils::append($routing, $dirPath . '/routing.yml'); $output->writeln('Generating routing : <info>OK</info>'); }