protected function interact(InputInterface $input, OutputInterface $output) {
$questions = Utils::defaultQuestions();
$vars = &$this->collectVars($input, $output, $questions);
- $vars['class'] = Utils::camelize($vars['name'] . 'Middleware');
+ $vars['class'] = Utils::camelize($vars['name']) . 'Middleware';
$this->addFile()
->path('src/{class}.php')