/** * 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); }