* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require_once(dirname(__FILE__).'/sfPluginBaseTask.class.php'); /** * Uninstall a plugin. * * @package symfony * @subpackage task * @author Fabien Potencier * @version SVN: $Id: sfPluginUninstallTask.class.php 8474 2008-04-15 22:47:27Z fabien $ */ class sfPluginUninstallTask extends sfPluginBaseTask { /** * @see sfTask */ protected function configure() { $this->addArguments(array( new sfCommandArgument('name', sfCommandArgument::REQUIRED, 'The plugin name'), )); $this->addOptions(array( new sfCommandOption('channel', 'c', sfCommandOption::PARAMETER_REQUIRED, 'The PEAR channel name', null), new sfCommandOption('install_deps', 'd', sfCommandOption::PARAMETER_NONE, 'Whether to force installation of dependencies', null), )); $this->aliases = array('plugin-uninstall'); $this->namespace = 'plugin'; $this->name = 'uninstall'; $this->briefDescription = 'Uninstalls a plugin'; $this->detailedDescription = <<logSection('plugin', sprintf('uninstalling plugin "%s"', $arguments['name'])); $this->getPluginManager()->uninstallPlugin($arguments['name'], $options['channel']); } }