protected function generateController() { $rules = ['name' => '']; $opts = $this->opts->addRules($rules); $argv = $opts->getArguments(); if (empty($argv[2])) { $this->console->terminate("Missing name for controller"); } $name = $argv[2]; $options = $opts->getOptions(); FileGenerators\ControllerGenerator::generate($name, $options, $this->console); }
private function createControllerFile($name, $options = []) { Toolbox\FileGenerators\ControllerGenerator::generate($name, $options); }