original_string: public function createController($config)
      {
          $this->fileService->mkdir($config['_path_controller_'], 0777, true);
  
          $request = $this->fileService->get($config['template_source'].'/Controller.txt');
  
          foreach ($config as $key => $value) {
              $request = str_replace($key, $value, $request);
          }
  
          $request = $this->putIfNotExists($config['_path_controller_'].'/'.$config['_ucCamel_casePlural_'].'Controller.php', $request);
  
          return $request;
      }
code: public function createController($config)
      {
          $this->fileService->mkdir($config['_path_controller_'], 0777, true);
  
          $request = $this->fileService->get($config['template_source'].'/Controller.txt');
  
          foreach ($config as $key => $value) {
              $request = str_replace($key, $value, $request);
          }
  
          $request = $this->putIfNotExists($config['_path_controller_'].'/'.$config['_ucCamel_casePlural_'].'Controller.php', $request);
  
          return $request;
      }
code_tokens: public function createController ( $ config ) { $ this -> fileService -> mkdir ( $ config [ '_path_controller_' ] , 0777 , true ) ; $ request = $ this -> fileService -> get ( $ config [ 'template_source' ] . '/Controller.txt' ) ; foreach ( $ config as $ key => $ value ) { $ request = str_replace ( $ key , $ value , $ request ) ; } $ request = $ this -> putIfNotExists ( $ config [ '_path_controller_' ] . '/' . $ config [ '_ucCamel_casePlural_' ] . 'Controller.php' , $ request ) ; return $ request ; }
docstring: Create the controller.
  
  @param array $config
  
  @return bool
docstring_tokens: Create the controller .