private function generateFileAndRenderTemplate(Resource $resource, $filepath) { $content = $this->renderTemplate($resource, $filepath); $this->filesystem->putFileContents($filepath, $content); $this->io->writeln($this->getGeneratedMessage($resource, $filepath)); }