protected function write(State $state, InputInterface $input, OutputInterface $output) { $writeState = new State($this->configWriter); $writeState->addModel($state->getEntityModel()); $writeState->addModel($state->getModel('entity-test')); parent::write($writeState, $input, $output); }
protected function write(State $state, InputInterface $input, OutputInterface $output) { $writeState = new State($this->configWriter); if (!$input->getOption('no-repository')) { $writeState->addModel($state->getRepositoryModel()); } if (!$input->getOption('no-trait')) { $writeState->addModel($state->getModel('repository-trait')); } parent::write($writeState, $input, $output); }
protected function write(State $state, InputInterface $input, OutputInterface $output) { $writeState = new State($this->configWriter); $writeState->addModel($state->getControllerModel()); parent::write($writeState, $input, $output); }