private readonly PluginService
$pluginService,
private readonly VersionSanitizer
$versionSanitizer,
) { } /**
* @throws RequirementStackException
*/
public function installPlugin(PluginEntity
$plugin, Context
$shopwareContext): InstallContext
{ $pluginData =
[];
$pluginBaseClass =
$this->
getPluginBaseClass($plugin->
getBaseClass());
$pluginVersion =
$plugin->
getVersion();
$installContext =
new InstallContext( $pluginBaseClass,
$shopwareContext,
$this->shopwareVersion,
$pluginVersion,
$this->
createMigrationCollection($pluginBaseClass) );
if ($plugin->
getInstalledAt()) {