$this->themeLifecycleHandler->
handleThemeUninstall($config,
$event->
getContext()->
getContext());
} public function pluginPostUninstall(PluginPostUninstallEvent
$event): void
{ if ($event->
getContext()->
keepUserData()) { return;
} $this->themeLifecycleService->
removeTheme($event->
getPlugin()->
getName(),
$event->
getContext()->
getContext());
} /**
* @throws ThemeCompileException
* @throws InvalidThemeBundleException
*/
private function createConfigFromClassName(string
$pluginPath, string
$className): StorefrontPluginConfiguration
{ /** @var Plugin $plugin */
$plugin =
new $className(true,
$pluginPath,
$this->projectDirectory
);