protected function configure() { parent::configure(); $this->setName('exception'); $this->setDescription('Generate exceptions (RuntimeException, NotFoundException and other)'); $this->addArgument('module', InputArgument::REQUIRED, 'Module name'); }
protected function configure() { parent::configure(); $this->setName('module'); $this->setDescription('Generate module skeleton'); $this->addArgument('module', InputArgument::REQUIRED, 'Module name'); }
protected function configure() { parent::configure(); $this->setName('form'); $this->setDescription('Generate form factory and write to service.config.php'); $this->addArgument('module', InputArgument::REQUIRED, 'Module name'); $this->addArgument('name', InputArgument::REQUIRED, 'Form name'); }
protected function configure() { parent::configure(); $this->setName('full'); $this->setDescription('Generate all available (without module skeleton)'); $this->addArgument('module', InputArgument::REQUIRED, 'Module name'); $this->addArgument('name', InputArgument::REQUIRED, 'Entity name'); $this->addOption('rest', 'r', InputOption::VALUE_NONE, 'Generate RESTful controller'); }
protected function configure() { parent::configure(); $this->setName('controller'); $this->setDescription('Generate controller'); $this->addArgument('module', InputArgument::REQUIRED, 'Module name'); $this->addArgument('name', InputArgument::REQUIRED, 'Controller name'); $this->addOption('rest', 'r', InputOption::VALUE_NONE, 'Generate RESTful controller'); }
protected function configure() { parent::configure(); $this->setName('repository'); $this->setDescription('Generate repository and repository DI trait'); $this->addArgument('module', InputArgument::REQUIRED, 'Module name'); $this->addArgument('name', InputArgument::REQUIRED, 'Repository name'); $this->addOption('no-trait', null, InputOption::VALUE_NONE, 'Generate without trait'); $this->addOption('no-repository', null, InputOption::VALUE_NONE, 'Generate without repository'); }
protected function configure() { parent::configure(); $this->setName('options'); $this->setDescription('Generate options, options DI trait, options factory and write to service.config.php'); $this->addArgument('module', InputArgument::REQUIRED, 'Module name'); $this->addArgument('name', InputArgument::REQUIRED, 'Options name (will be append Options postfix)'); $this->addOption('no-options', null, InputOption::VALUE_NONE, 'Disable options generation'); $this->addOption('no-trait', null, InputOption::VALUE_NONE, 'Disable trait generation'); $this->addOption('no-factory', null, InputOption::VALUE_NONE, 'Disable factory generation'); $this->addOption('only-options', null, InputOption::VALUE_NONE, 'Generate only options'); $this->addOption('only-trait', null, InputOption::VALUE_NONE, 'Generate only trait'); $this->addOption('only-factory', null, InputOption::VALUE_NONE, 'Generate only factory'); }
protected function configure() { parent::configure(); $this->setName('service'); $this->setDescription('Generate service, service DI trait, service factory, service test and write to service.config.php'); $this->addArgument('module', InputArgument::REQUIRED, 'Module name'); $this->addArgument('name', InputArgument::REQUIRED, 'Service name'); $this->addOption('no-service', null, InputOption::VALUE_NONE, 'Disable service generation'); $this->addOption('no-trait', null, InputOption::VALUE_NONE, 'Disable service trait generation'); $this->addOption('no-factory', null, InputOption::VALUE_NONE, 'Disable service factory generation'); $this->addOption('no-test', null, InputOption::VALUE_NONE, 'Disable service test generation'); $this->addOption('only-service', null, InputOption::VALUE_NONE, 'Generate only service'); $this->addOption('only-trait', null, InputOption::VALUE_NONE, 'Generate only trait'); $this->addOption('only-factory', null, InputOption::VALUE_NONE, 'Generate only factory'); $this->addOption('only-test', null, InputOption::VALUE_NONE, 'Generate only test'); }