} /**
* {@inheritdoc}
*/
protected function execute(InputInterface
$input, OutputInterface
$output) { /** @var InstallerService $pluginManager */
$pluginManager =
$this->container->
get(\Shopware\Bundle\PluginInstallerBundle\Service\InstallerService::
class);
if (!
$input->
getOption('no-refresh'
)) { $pluginManager->
refreshPluginList();
$output->
writeln('Successfully refreshed'
);
} $pluginName =
$input->
getArgument('plugin'
);
try { $plugin =
$pluginManager->
getPluginByName($pluginName);
} catch (Exception
$e) { $output->
writeln(sprintf('Plugin by name "%s" was not found.',
$pluginName));
return 1;
}