// only skip rebuild if plugin has overwritten rebuildContainer method and source is system source (CLI)
if($pluginBaseClass->rebuildContainer() || !$shopwareContext->getSource() instanceof SystemSource){ $this->rebuildContainerWithNewPluginState($plugin); }