protected function execute(InputInterface $input, OutputInterface $output)
{
$names = $input->getArgument('names');
$small = $input->getOption('small');
$useHttp = $input->getOption('useHttp');
$branch = $input->getOption('branch');
$shopwarePath = $input->getOption('shopware-root');
$checkout = $input->getOption('checkout');
if (!$shopwarePath) {
$shopwarePath = null;
}
$this->container->get('io_service')->cls();
if (!$checkout) {
$shopwarePath = $this->container->get('utilities')->getValidShopwarePath($shopwarePath);
$this->shopwarePath = $shopwarePath;
}
/** @var PluginOperationManager $interactionManager */
$interactionManager = $this->container->get('plugin_operation_manager');
$this->container->get('plugin_column_renderer')->setSmall($small);
$params = array('checkout' => $checkout, 'branch' => $branch, 'useHttp' => $useHttp);
if (!empty($names)) {
if (!$checkout) {
$params['activate'] = $this->askActivatePluginQuestion();
}
$interactionManager->searchAndOperate($names, array($this, 'doInstall'), $params);
return;
}
$interactionManager->operationLoop(array($this, 'doInstall'), $params);
}