* * 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'); /** * Installs a plugin. * * @package symfony * @subpackage task * @author Fabien Potencier * @version SVN: $Id: sfPluginAddChannelTask.class.php 11750 2008-09-23 18:33:28Z Carl.Vondrick $ */ class sfPluginAddChannelTask extends sfPluginBaseTask { /** * @see sfTask */ protected function configure() { $this->addArguments(array( new sfCommandArgument('name', sfCommandArgument::REQUIRED, 'The channel name'), )); $this->namespace = 'plugin'; $this->name = 'add-channel'; $this->briefDescription = 'Add a new PEAR channel'; $this->detailedDescription = <<logSection('plugin', sprintf('add channel "%s"', $arguments['name'])); $this->getPluginManager()->getEnvironment()->registerChannel($arguments['name']); } }