original_string: public function createCRUD($config, $section, $table, $splitTable)
      {
          $bar = $this->output->createProgressBar(7);
  
          try {
              $this->crudService->generateCore($config, $bar);
              $this->crudService->generateAppBased($config, $bar);
  
              $this->crudGenerator->createTests(
                  $config,
                  $this->option('serviceOnly'),
                  $this->option('apiOnly'),
                  $this->option('api')
              );
              $bar->advance();
  
              $this->crudGenerator->createFactory($config);
              $bar->advance();
  
              $this->crudService->generateAPI($config, $bar);
              $bar->advance();
  
              $this->crudService->generateDB($config, $bar, $section, $table, $splitTable, $this);
              $bar->finish();
  
              $this->crudReport($table);
          } catch (Exception $e) {
              throw new Exception('Unable to generate your CRUD: ('.$e->getFile().':'.$e->getLine().') '.$e->getMessage(), 1);
          }
      }
code: public function createCRUD($config, $section, $table, $splitTable)
      {
          $bar = $this->output->createProgressBar(7);
  
          try {
              $this->crudService->generateCore($config, $bar);
              $this->crudService->generateAppBased($config, $bar);
  
              $this->crudGenerator->createTests(
                  $config,
                  $this->option('serviceOnly'),
                  $this->option('apiOnly'),
                  $this->option('api')
              );
              $bar->advance();
  
              $this->crudGenerator->createFactory($config);
              $bar->advance();
  
              $this->crudService->generateAPI($config, $bar);
              $bar->advance();
  
              $this->crudService->generateDB($config, $bar, $section, $table, $splitTable, $this);
              $bar->finish();
  
              $this->crudReport($table);
          } catch (Exception $e) {
              throw new Exception('Unable to generate your CRUD: ('.$e->getFile().':'.$e->getLine().') '.$e->getMessage(), 1);
          }
      }
code_tokens: public function createCRUD ( $ config , $ section , $ table , $ splitTable ) { $ bar = $ this -> output -> createProgressBar ( 7 ) ; try { $ this -> crudService -> generateCore ( $ config , $ bar ) ; $ this -> crudService -> generateAppBased ( $ config , $ bar ) ; $ this -> crudGenerator -> createTests ( $ config , $ this -> option ( 'serviceOnly' ) , $ this -> option ( 'apiOnly' ) , $ this -> option ( 'api' ) ) ; $ bar -> advance ( ) ; $ this -> crudGenerator -> createFactory ( $ config ) ; $ bar -> advance ( ) ; $ this -> crudService -> generateAPI ( $ config , $ bar ) ; $ bar -> advance ( ) ; $ this -> crudService -> generateDB ( $ config , $ bar , $ section , $ table , $ splitTable , $ this ) ; $ bar -> finish ( ) ; $ this -> crudReport ( $ table ) ; } catch ( Exception $ e ) { throw new Exception ( 'Unable to generate your CRUD: (' . $ e -> getFile ( ) . ':' . $ e -> getLine ( ) . ') ' . $ e -> getMessage ( ) , 1 ) ; } }
docstring: Create a CRUD.
  
  @param array  $config
  @param string $section
  @param string $table
  @param array  $splitTable
docstring_tokens: Create a CRUD .