/**
* {@inheritdoc}
*
* @throws PluginNotInstalledException
* @throws PluginNotActivatedException
*/
protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $io =
new ShopwareStyle($input,
$output);
$context = Context::
createDefaultContext();
$plugins =
$this->
prepareExecution(self::LIFECYCLE_METHOD,
$io,
$input,
$context);
if ($plugins === null
) { return self::SUCCESS;
} $deactivatedPluginCount = 0;
foreach ($plugins as $plugin) { if ($plugin->
getInstalledAt() === null
) { $io->
note(sprintf('Plugin "%s" must be installed. Skipping.',
$plugin->
getName()));
continue;
}