@@ 471-481 (lines=11) @@ | ||
468 | /** |
|
469 | * @param array $parameters The template parameters |
|
470 | */ |
|
471 | public function generateFixtures(array $parameters) |
|
472 | { |
|
473 | $relPath = '/DataFixtures/ORM/ArticleGenerator/'; |
|
474 | $sourceDir = $this->skeletonDir.$relPath; |
|
475 | $targetDir = $this->bundle->getPath().$relPath; |
|
476 | ||
477 | $filename = 'ArticleFixtures.php'; |
|
478 | $this->renderSingleFile($sourceDir, $targetDir, $filename, $parameters, false, $this->entity . $filename); |
|
479 | ||
480 | $this->assistant->writeLine('Generating fixtures : <info>OK</info>'); |
|
481 | } |
|
482 | ||
483 | /** |
|
484 | * Update the getPossibleChildTypes function of the parent Page classes |
|
@@ 510-518 (lines=9) @@ | ||
507 | } |
|
508 | } |
|
509 | ||
510 | private function generateEventSubscriber(array $parameters) |
|
511 | { |
|
512 | $relPath = '/EventSubscriber/'; |
|
513 | $sourceDir = $this->skeletonDir.$relPath; |
|
514 | $targetDir = $this->bundle->getPath().$relPath; |
|
515 | ||
516 | $filename = 'ArticleEventSubscriber.php'; |
|
517 | $this->renderSingleFile($sourceDir, $targetDir, $filename, $parameters, false, $this->entity . $filename); |
|
518 | } |
|
519 | } |
|
520 |
@@ 78-91 (lines=14) @@ | ||
75 | * |
|
76 | * @param array $parameters |
|
77 | */ |
|
78 | private function generateControllers(array $parameters) |
|
79 | { |
|
80 | $relPath = '/Controller/'; |
|
81 | $sourceDir = $this->skeletonDir.$relPath; |
|
82 | $targetDir = $this->bundle->getPath().$relPath; |
|
83 | ||
84 | $this->renderSingleFile($sourceDir, $targetDir, 'DefaultController.php', $parameters, true); |
|
85 | ||
86 | if ($this->demosite) { |
|
87 | $this->renderSingleFile($sourceDir, $targetDir, 'BikeAdminListController.php', $parameters, true); |
|
88 | } |
|
89 | ||
90 | $this->assistant->writeLine('Generating controllers : <info>OK</info>'); |
|
91 | } |
|
92 | ||
93 | /** |
|
94 | * Generate admin list classes. |