original_string: public function generateAppBased($config, $bar)
      {
          if (!$config['options-serviceOnly'] && !$config['options-apiOnly']) {
              $this->crudGenerator->createController($config);
              $this->crudGenerator->createViews($config);
              $this->crudGenerator->createRoutes($config);
  
              if ($config['options-withFacade']) {
                  $this->crudGenerator->createFacade($config);
              }
          }
          $bar->advance();
      }
code: public function generateAppBased($config, $bar)
      {
          if (!$config['options-serviceOnly'] && !$config['options-apiOnly']) {
              $this->crudGenerator->createController($config);
              $this->crudGenerator->createViews($config);
              $this->crudGenerator->createRoutes($config);
  
              if ($config['options-withFacade']) {
                  $this->crudGenerator->createFacade($config);
              }
          }
          $bar->advance();
      }
code_tokens: public function generateAppBased ( $ config , $ bar ) { if ( ! $ config [ 'options-serviceOnly' ] && ! $ config [ 'options-apiOnly' ] ) { $ this -> crudGenerator -> createController ( $ config ) ; $ this -> crudGenerator -> createViews ( $ config ) ; $ this -> crudGenerator -> createRoutes ( $ config ) ; if ( $ config [ 'options-withFacade' ] ) { $ this -> crudGenerator -> createFacade ( $ config ) ; } } $ bar -> advance ( ) ; }
docstring: Generate app based elements.
  
  @param array                                         $config
  @param \Symfony\Component\Console\Helper\ProgressBar $bar
docstring_tokens: Generate app based elements .