if (!
($event instanceof PluginPostActivateEvent
) && !
($event instanceof PluginPostDeactivationFailedEvent
)) { return;
} if ($this->
skipCompile($event->
getContext()->
getContext())) { return;
} // create instance of the plugin to create a configuration
// (the kernel boot is already finished and the activated plugin is missing)
$storefrontPluginConfig =
$this->
createConfigFromClassName( $event->
getPlugin()->
getPath() ?: '',
$event->
getPlugin()->
getBaseClass() );
// ensure plugin configuration is in the list of all active plugin configurations
$configurationCollection =
clone $this->storefrontPluginRegistry->
getConfigurations();
$configurationCollection->
add($storefrontPluginConfig);
$this->themeLifecycleHandler->
handleThemeInstallOrUpdate( $storefrontPluginConfig,
$configurationCollection,