/** * {@inheritDoc} * * @return void */ protected function configure() { parent::configure(); $this->addOption('json', '', InputOption::VALUE_OPTIONAL, 'Path to the json definition.')->addOption('no-controller', '', InputOption::VALUE_OPTIONAL, 'Pass if no controller should be generated')->setName('graviton:generate:resource')->setDescription('Generates a graviton rest resource'); }
protected function configure() { parent::configure(); $this->setAliases(array('oliorga:generate:entity')); }
protected function configure() { parent::configure(); $this->setName('skcms:generate:entity')->setAliases(array('generate:skcms:entity'))->setDescription('Generates a new Doctrine entity inside a bundle and prepare it for SKCMS')->addOption('add-to-menu', null, InputOption::VALUE_NONE, 'Whether to add entity to the menu')->addOption('beauty-name', null, InputOption::VALUE_OPTIONAL, 'The beauty name in the menu')->addOption('menu-group', null, InputOption::VALUE_OPTIONAL, 'The menu where it\'s displayed in the admin'); }