private function createConfigFromClassName(string
$pluginPath, string
$className): StorefrontPluginConfiguration
{ /** @var Plugin $plugin */
$plugin =
new $className(true,
$pluginPath,
$this->projectDirectory
);
if (!
$plugin instanceof Plugin
) { throw new \
RuntimeException( sprintf('Plugin class "%s" must extend "%s"',
$plugin::
class, Plugin::
class) );
} return $this->pluginConfigurationFactory->
createFromBundle($plugin);
} private function doPostActivate(PluginLifecycleEvent
$event): void
{ if (!
($event instanceof PluginPostActivateEvent
) && !
($event instanceof PluginPostDeactivationFailedEvent
)) { return;
} if ($this->
skipCompile($event->
getContext()->
getContext())) { return;
}