private function makeSureOnlyActivatedPluginsAreLoaded() { foreach ($this->getLoadedPlugins() as $pluginName => $plugin) { if (!in_array($pluginName, $this->pluginsToLoad)) { $this->unloadPlugin($plugin); } } }