/** * {@inheritdoc} */ protected function replaceNamespace(&$stub, $name) { $parent = parent::replaceNamespace($stub, $name); $stub = str_replace('DummyRouteName', $this->getRouteName(), $stub); $stub = str_replace('DummyViewPath', $this->getViewPath(), $stub); return $parent; }
/** * {@inheritdoc} */ protected function getOptions() { $options = parent::getOptions(); $options[] = ['guard', 'g', InputOption::VALUE_OPTIONAL, 'Generate request class that authorized by guard driver.']; return $options; }