handle() public method

public handle ( )
コード例 #1
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $viewGenerator = new ViewGenerator($this->commandData);
     $viewGenerator->generate();
     $this->performPostActions();
 }
コード例 #2
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $this->generateCommonItems();
     $this->generateScaffoldItems();
     $this->performPostActionsWithMigration();
 }
コード例 #3
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $controllerGenerator = new APIControllerGenerator($this->commandData);
     $controllerGenerator->generate();
     $this->performPostActions();
 }
コード例 #4
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $repositoryGenerator = new RepositoryGenerator($this->commandData);
     $repositoryGenerator->generate();
     $this->performPostActions();
 }
コード例 #5
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $this->initAPIGeneratorCommandData();
     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();
     $controllerGenerator = new APIControllerGenerator($this->commandData);
     $controllerGenerator->generate();
     $requestGenerator = new APIRequestGenerator($this->commandData);
     $requestGenerator->generate();
     $routesGenerator = new APIRoutesGenerator($this->commandData);
     $routesGenerator->generate();
     if ($this->commandData->getAddOn('tests')) {
         $repositoryTestGenerator = new RepositoryTestGenerator($this->commandData);
         $repositoryTestGenerator->generate();
         $testTraitGenerator = new TestTraitGenerator($this->commandData);
         $testTraitGenerator->generate();
         $apiTestGenerator = new ApiTestGenerator($this->commandData);
         $apiTestGenerator->generate();
     }
     $this->performPostActionsWithMigration();
 }
コード例 #6
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $this->initAPIGeneratorCommandData();
     $modelGenerator = new ModelGenerator($this->commandData);
     $modelGenerator->generate();
     $this->performPostActions();
 }
コード例 #7
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $repositoryTestGenerator = new RepositoryTestGenerator($this->commandData);
     $repositoryTestGenerator->generate();
     $testTraitGenerator = new TestTraitGenerator($this->commandData);
     $testTraitGenerator->generate();
     $apiTestGenerator = new ApiTestGenerator($this->commandData);
     $apiTestGenerator->generate();
     $this->performPostActions();
 }
コード例 #8
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     if ($this->commandData->getOption('fromTable')) {
         $this->error('fromTable option is now allowed to use with migration generator');
         return;
     }
     $migrationGenerator = new MigrationGenerator($this->commandData);
     $migrationGenerator->generate();
     $this->performPostActionsWithMigration();
 }