Beispiel #1
0
 protected function configure()
 {
     parent::configure();
     $this->setName('schema')->setDescription('Install schema on database')->addArgument('show-only', InputArgument::OPTIONAL, 'Show sql instead install')->setHelp(sprintf('%sInstall schema on database%s', PHP_EOL, PHP_EOL));
 }
Beispiel #2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('create')->setDescription('Create a Field or an Collection')->addArgument('Field|Collection', InputArgument::REQUIRED, 'Field or Collection')->addArgument('name', InputArgument::REQUIRED, 'The name is the identify of our Field or your Collection')->addArgument('label', InputArgument::REQUIRED, 'The Label for the presentation of your Field or Collection')->addArgument('type', InputArgument::OPTIONAL, 'The type of field (only field has types)')->addArgument('collection', InputArgument::OPTIONAL, 'The collection name of field new field')->setHelp(sprintf("%sCreates a new Field or a new Collection examples: \n create Field keywords text Keywords header \n create Collection header Header%s", PHP_EOL, PHP_EOL));
 }
Beispiel #3
0
 protected function configure()
 {
     parent::configure();
     $this->setName('create')->setDescription('Create a Field, a Collection or a Language. ')->addArgument('Field|Collection|Language', InputArgument::REQUIRED, 'Field, Collection or Language')->addArgument('name', InputArgument::REQUIRED, 'The name is the identify of our registry')->addArgument('label', InputArgument::REQUIRED, 'The Label for the presentation of your registry')->addArgument('language', InputArgument::OPTIONAL, 'The Language of registry. Required when create Field and Collections')->addArgument('type', InputArgument::OPTIONAL, 'The type of field (only field has types)')->addArgument('collection', InputArgument::OPTIONAL, 'The collection name of field new field')->setHelp(sprintf("%sCreates examples:\n                create Language en_EN English\n                create Collection header Header en_EN\n                create Field about \"About text\" en_EN html\n                create Field meta-keys Metakeys en_EN text header\n                create Field contact Contact en_EN text\n                create Option Girl contact en_EN\n                create Option Boy contact en_EN %s", PHP_EOL, PHP_EOL));
 }