/**
  * Do this execute.
  *
  * @return  mixed
  */
 protected function doExecute()
 {
     $tmpl = file_get_contents(GENERATOR_BUNDLE_PATH . '/Template/test/testClass.php');
     $file = StringHelper::parseVariable($tmpl, $this->replace);
     Folder::create(dirname($this->config['replace.test.class.file']));
     file_put_contents($this->config['replace.test.class.file'], $file);
 }
Exemplo n.º 2
0
 /**
  * doExecute
  *
  * @return  mixed
  */
 protected function doExecute()
 {
     $convertOperator = new ConvertOperator($this->io);
     // Delete old folder first.
     if (file_exists($this->config['path.dest'])) {
         Folder::delete($this->config['path.dest']);
     }
     // Do convert.
     $convertOperator->copy($this->config['path.src'], $this->config['path.dest'], $this->replace);
 }