Example #1
10
 /**
  * Command configuration method.
  * Configure all the arguments and options.
  */
 protected function configure()
 {
     parent::configure();
     $this->addArgument('name', InputArgument::REQUIRED, 'Seeder filename')->addOption('path', NULL, InputOption::VALUE_REQUIRED, 'Set the migration path', 'application/seeders/')->addOption('debug', NULL, InputOption::VALUE_NONE, 'If set, the debug mode will show the mysql queries executed');
 }
Example #2
1
 /**
  * Command configuration method.
  * Configure all the arguments and options.
  */
 protected function configure()
 {
     parent::configure();
     $this->addArgument('filename', InputArgument::REQUIRED, 'Generator filename')->addArgument('options', InputArgument::IS_ARRAY, 'Options passed to all generated files')->addOption('path', 'p', InputOption::VALUE_REQUIRED, 'Set the generator base path', 'application/')->addOption('force', NULL, InputOption::VALUE_NONE, 'If set, the task will force the generation process')->addOption('timestamp', NULL, InputOption::VALUE_NONE, 'If set, the migration will run with timestamp mode active');
 }
Example #3
0
 /**
  * Command configuration method.
  * Configure all the arguments and options.
  */
 protected function configure()
 {
     parent::configure();
     $this->addOption('name', NULL, InputOption::VALUE_REQUIRED, 'Set the migration version name', FALSE)->addOption('path', NULL, InputOption::VALUE_REQUIRED, 'Set the migration path', 'application/migrations/')->addOption('timestamp', NULL, InputOption::VALUE_NONE, 'If set, the migration will run with timestamp mode active')->addOption('debug', NULL, InputOption::VALUE_NONE, 'If set, the debug mode will show the mysql queries executed');
 }
Example #4
0
 /**
  * Command configuration method.
  * Configure all the arguments and options.
  */
 protected function configure()
 {
     parent::configure();
     $this->addOption('host', NULL, InputOption::VALUE_OPTIONAL, 'The host address to serve the application on.', 'localhost')->addOption('port', NULL, InputOption::VALUE_OPTIONAL, 'The port to serve the application on.', 8000)->addOption('docroot', NULL, InputOption::VALUE_OPTIONAL, 'Specify an explicit document root.', FALSE);
 }