generate() public method

public generate ( )
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $requestGenerator = new RequestGenerator($this->commandData);
     $requestGenerator->generate();
     $this->performPostActions();
 }
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $this->initScaffoldGeneratorCommandData();
     if (!$this->commandData->options['fromTable']) {
         $migrationGenerator = new MigrationGenerator($this->commandData);
         $migrationGenerator->generate();
     }
     $modelGenerator = new ModelGenerator($this->commandData);
     $modelGenerator->generate();
     $repositoryGenerator = new RepositoryGenerator($this->commandData);
     $repositoryGenerator->generate();
     $requestGenerator = new RequestGenerator($this->commandData);
     $requestGenerator->generate();
     $controllerGenerator = new ControllerGenerator($this->commandData);
     $controllerGenerator->generate();
     $viewGenerator = new ViewGenerator($this->commandData);
     $viewGenerator->generate();
     $routeGenerator = new RoutesGenerator($this->commandData);
     $routeGenerator->generate();
     $this->performPostActionsWithMigration();
 }
 public function generateScaffoldItems()
 {
     if (!$this->isSkip('requests') and !$this->isSkip('scaffold_requests')) {
         $requestGenerator = new RequestGenerator($this->commandData);
         $requestGenerator->generate();
     }
     if (!$this->isSkip('controllers') and !$this->isSkip('scaffold_controller')) {
         $controllerGenerator = new ControllerGenerator($this->commandData);
         $controllerGenerator->generate();
     }
     if (!$this->isSkip('views')) {
         $viewGenerator = new ViewGenerator($this->commandData);
         $viewGenerator->generate();
     }
     if (!$this->isSkip('routes') and !$this->isSkip('scaffold_routes')) {
         $routeGenerator = new RoutesGenerator($this->commandData);
         $routeGenerator->generate();
     }
     if (!$this->isSkip('menu') and $this->commandData->config->getAddOn('menu.enabled')) {
         $menuGenerator = new MenuGenerator($this->commandData);
         $menuGenerator->generate();
     }
 }