Plugins are given the possibility to provide a plugin:install command. This command is run automatically when the first time a plugin is enabled for a tenant.
This behaviour leads to a couple on inconveniences
if (!$this->pluginsService->getByMpmPluginId($mpmPluginId) instanceof Plugins)Please change the behaviour to
package:install every time a plugin is enabled for a tenantFor this to work (apart from the obvious changes to the Plugin Service logic) a few steps have to be taken.
install command to make them idempotent, i.e. it should be save to run the install multiple times.For example, an install command that creates default credentials using ->create() should be changed to ->firstOrCreate()
N/A
No response