$plugin->
setVersion($plugin->
getUpdateVersion());
} $this->em->
flush($plugin);
$this->
applyMigrations($pluginBootstrap, AbstractPluginMigration::MODUS_INSTALL
);
$pluginBootstrap->
install($context);
$this->events->
notify(PluginEvent::POST_INSTALL,
new PostPluginInstallEvent($context,
$pluginBootstrap));
$plugin->
setInstalled(new DateTime());
$plugin->
setUpdated(new DateTime());
$this->em->
flush($plugin);
return $context;
} /**
* @param bool $removeData
*
* @throws Exception
* @throws \Doctrine\DBAL\DBALException
* @throws \Doctrine\ORM\OptimisticLockException
*
* @return UninstallContext
*/