InfyOm\Generator\Generators\Scaffold\RoutesGenerator::generate PHP Метод

generate() публичный Метод

public generate ( )
    public function generate()
    {
        $this->routeContents .= "\n\n" . $this->routesTemplate;
        file_put_contents($this->path, $this->routeContents);
        $this->commandData->commandComment("\n" . $this->commandData->config->mCamelPlural . ' routes added.');
    }

Usage Example

 /**
  * 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();
 }
All Usage Examples Of InfyOm\Generator\Generators\Scaffold\RoutesGenerator::generate