コード例 #1
0
 protected function configure()
 {
     parent::configure();
     $this->addOption('modules', 'm', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Only run fixtures for the given modules')->addOption('exclude-modules', 'x', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Exclude fixtures in the given modules')->addOption('append', '', InputOption::VALUE_NONE, 'Don\'t empty database tables');
 }
コード例 #2
0
 protected function configure()
 {
     parent::configure();
     $this->addOption('confirm', '', InputOption::VALUE_NONE, 'Actually execute the SQL statements')->addOption('show-sql', '', InputOption::VALUE_NONE, 'Print the SQL statements');
 }
コード例 #3
0
 protected function configure()
 {
     parent::configure();
     $this->addArgument('module', InputArgument::OPTIONAL, 'The module containing the migrations');
 }
コード例 #4
0
 protected function configure()
 {
     parent::configure();
     $this->addOption('cache', 'c', InputOption::VALUE_OPTIONAL, 'The name of the cache service', 'cache');
 }