collectDefault($vars); $vars['class'] = $this->ask('Class', '{machine_name|camelize}'); // @DCG The template should be located under directory specified in // $this->templatePath variable. $this->addFile() ->path('src/{class}.php') ->template('{{ template_name }}'); } }