public function invoke(Scaffolding $scaffolding) { $name = $this->in->getArgument('presenterName'); $file = $scaffolding->createPresenter($name); $this->writeCreatedFilesHeader(); $this->writeCreatedFile($file); $file = $scaffolding->createDefaultView($name); $this->writeCreatedFile($file); $this->out->writeln("<comment>Don't forget to update your routes.</comment>"); }