/** * {@inheritdoc} */ protected function configure() { $this->addOption( self::INPUT_KEY_FORCE, 'f', InputOption::VALUE_NONE, 'Bypass dependencies check' ); $this->addOption( self::INPUT_KEY_ALL, null, InputOption::VALUE_NONE, ($this->isEnable() ? 'Enable' : 'Disable') . ' all modules' ); parent::configure(); }
/** * {@inheritdoc} */ protected function configure() { $options = [new InputOption(self::INPUT_KEY_REMOVE_DATA, 'r', InputOption::VALUE_NONE, 'Remove data installed by module(s)'), new InputOption(self::INPUT_KEY_BACKUP_CODE, null, InputOption::VALUE_NONE, 'Take code and configuration files backup (excluding temporary files)'), new InputOption(self::INPUT_KEY_BACKUP_MEDIA, null, InputOption::VALUE_NONE, 'Take media backup'), new InputOption(self::INPUT_KEY_BACKUP_DB, null, InputOption::VALUE_NONE, 'Take complete database backup')]; $this->setName('module:uninstall')->setDescription('Uninstalls modules installed by composer')->setDefinition($options); parent::configure(); }