/** * @return array */ protected function getOptions() { $options = parent::getOptions(); $options[] = ['template', 't', InputOption::VALUE_NONE, 'Create a custom template for this Form']; $options[] = ['controller', 'C', InputOption::VALUE_REQUIRED, 'Add FormMethod and allowed actions to the given Controller']; return $options; }
protected function buildClass($class) { $content = parent::buildClass($class); $content = str_replace('CommandName', strtolower($this->getNameInput()), $content); return $content; }