throw new PluginComposerJsonInvalidException( $pluginBaseClass->
getPath() . '/composer.json',
['No name defined in composer.json'
] );
} $this->executor->
remove($pluginComposerName,
$plugin->
getName());
// running composer require may have consequences for other plugins, when they are required by the plugin being uninstalled
$this->pluginService->
refreshPlugins($shopwareContext,
new NullIO());
} $this->eventDispatcher->
dispatch(new PluginPostUninstallEvent($plugin,
$uninstallContext));
return $uninstallContext;
} /**
* @throws RequirementStackException
*/
public function updatePlugin(PluginEntity
$plugin, Context
$shopwareContext): UpdateContext
{ if ($plugin->
getInstalledAt() === null
) { throw new PluginNotInstalledException($plugin->
getName());
}