public function addComponent($component, $install, $options, $info, $reason = '', $warnings = array())
{
$installer = $this->getInstallationHandler();
$this->_output->ok(sprintf('About to add component %s%s', $component, $reason));
if (!empty($warnings)) {
foreach ($warnings as $warning) {
$this->_output->warn($warnings);
}
}
ob_start();
Components_Exception_Pear::catchError($installer->doInstall('install', $options, $install));
$this->_output->pear(ob_get_clean());
$this->_output->ok(sprintf('Successfully added component %s%s%s', $component, $info, $reason));
}